While developing on JDeveloper 11.1.1.6 I’ve noticed a strange behavior, that I consider as a bug.
(I could find this problem also on 11.1.1.5 version, but not on previous versions)
When I tried to add another message type to my bpel component, I got a compilation error:
XML-20190: (Fatal Error) Whitespace required.
The above error was the main error, followed by other errors like:
Error(15,84): Cannot find Port Type “{http://xmlns.oracle.com/MyWorkBpel/Project3/BpelProcess1” for “project_client_ep” in WSDL Manager
The error was generated because my main bpel wsdl was corrupted.
The question now is what happened?!
From some reason, JDeveoper couldn’t fully created the new message type – didn’t close properly the wsdl:message & wsdl:part & wsdl:definitions elements and dropped the ports definitions.
In my example I wanted to add a new message called NewMessage that contains a message part called NewString of a simple type – String:
I’ve realized that the problem was generated from a “simple” reason: JDeveloper couldn’t import the xsd deceleration to the wsdl:definitions element in the beginning of the wsdl file.
This problem is being generated only for the XML Schema Simple Type.
So, to solve this problem, you must add the following line into the wsdl:definitions tag:
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
Important: You must add this line BEFORE adding new message part!
When adding the above line manually, you can later on create a new message part of XSD Simple Type with no problem.
Of course another solution for that problem is to “fix” the wsdl file, but it will just take time and unnecessary work.
Good Luck!
Hi All,
After a long communication with Oracle, they have released a patch for 11.1.1.7
You can find the Patch 16050985 in Oracle Support center (metalink).
Thanks
Arik