Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDeveloper Error: White spaces are required between publicId and systemId.

537809Oct 5 2006 — edited Oct 7 2006
I'm using JDeveloper 10.1.3.1.0.
This error is occurring in a BPEL process project.

With one particular web service I have, adding a Partner Link to the BPEL generates the following compile error:
Error: White spaces are required between publicId and systemId.

I can add Partner links from other web services and the BPEL will compile fine. The main difference I can see is that this web service supports WS-Addressing.

I have found one other reference to a similar (but not exactly the same) problem elsewhere in these forums but the fix is not really applicable. All of the wsdl files pass the "Validate WSDL" operation, and I don't see anything wrong with them.

When the error occurs and I select "Go To Source" it points back to the first line of the bpel file.

Can anyone help me out on this?

This is the wsdl for the web service, wsademo.wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="wsademo"
targetNamespace="http://localhost:11001/wsademo.wsdl"
xmlns:tns="http://localhost:11001/wsademo.wsdl"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:ns="http://localhost:11001/wsademo.wsdl"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<types>

<schema targetNamespace="http://localhost:11001/wsademo.wsdl"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:ns="http://localhost:11001/wsademo.wsdl"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
<import namespace="http://www.w3.org/2003/05/soap-encoding"/>
<!-- operation request element -->
<element name="wsademoResult">
<complexType>
<sequence>
<element name="out" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
</element>
<!-- operation request element -->
<element name="wsademo">
<complexType>
<sequence>
<element name="in" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
</element>
<!-- operation response element -->
<element name="wsademoResult">
<complexType>
<sequence>
<element name="out" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
</element>
</schema>

</types>

<message name="wsademoResult">
<part name="parameters" element="ns:wsademoResult"/>
</message>

<message name="wsademo">
<part name="parameters" element="ns:wsademo"/>
</message>

<message name="wsademoResult">
<part name="parameters" element="ns:wsademoResult"/>
</message>

<message name="wsademoHeader">
<part name="MessageID" element="wsa:MessageID"/>
<part name="RelatesTo" element="wsa:RelatesTo"/>
<part name="From" element="wsa:From"/>
<part name="ReplyTo" element="wsa:ReplyTo"/>
<part name="FaultTo" element="wsa:FaultTo"/>
<part name="To" element="wsa:To"/>
<part name="Action" element="wsa:Action"/>
</message>

<portType name="wsademoPort">
<operation name="wsademoResult">
<documentation>accepts a string value from a relayed response</documentation>
<input message="tns:wsademoResult"/>
</operation>
<operation name="wsademo">
<documentation>echos a string value and relays the response to the wsa replyTo address (if present)</documentation>
<input message="tns:wsademo"/>
<output message="tns:wsademoResult"/>
</operation>
</portType>

<binding name="wsademo" type="tns:wsademoPort">
<SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="wsademoResult">
<SOAP:operation soapAction="urn:wsademo/wsademoPort/wsademoResult"/>
<input>
<SOAP:body parts="parameters" use="literal"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="Action"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="To"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="FaultTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="ReplyTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="From"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="RelatesTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="MessageID"/>
</input>
</operation>
<operation name="wsademo">
<SOAP:operation soapAction="urn:wsademo/wsademoPort/wsademo"/>
<input>
<SOAP:body parts="parameters" use="literal"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="Action"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="To"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="FaultTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="ReplyTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="From"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="RelatesTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="MessageID"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="Action"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="To"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="FaultTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="ReplyTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="From"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="RelatesTo"/>
<SOAP:header use="literal" message="tns:wsademoHeader" part="MessageID"/>
</output>
</operation>
</binding>

<service name="wsademo">
<documentation>demonstrates WS-Addressing capabilities</documentation>
<port name="wsademo" binding="tns:wsademo">
<SOAP:address location="http://localhost:11001"/>
</port>
</service>

</definitions>


This is the wsdl that is generated by JDeveloper that contains the PartnerLinks and refernce back to the original wsdl file, wsademoRef.wsdl:

<definitions
name="wsademo"
targetNamespace="http://localhost:11001/wsademo.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://localhost:11001/wsademo.wsdl"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<import namespace="http://localhost:11001/wsademo.wsdl" location="wsademo.wsdl"/>
<plnk:partnerLinkType name="wsademoPort_PL">
<plnk:role name="wsademoPort_Role">
<plnk:portType name="tns:wsademoPort"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>


And finally the is the BPEL, WSAtest3.bpel:

<?xml version="1.0" encoding="UTF-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Oracle JDeveloper BPEL Designer

Created: Thu Oct 05 15:27:12 GMT-08:00 2006
Author: wstielau
Purpose: Synchronous BPEL Process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<process name="WsaTest3" targetNamespace="http://xmlns.oracle.com/WsaTest3"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns1="http://localhost:11001/wsademo.wsdl"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://localhost:80/Service.wsdl"
xmlns:client="http://xmlns.oracle.com/WsaTest3"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension/"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
PARTNERLINKS
List of services participating in this BPEL process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="client" partnerLinkType="client:WsaTest3"
myRole="WsaTest3Provider"/>
<partnerLink name="wsademo" partnerLinkType="ns1:wsademoPort_PL"
myRole="wsademoPort_Role" partnerRole="wsademoPort_Role"/>
</partnerLinks>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
VARIABLES
List of messages and XML documents used within this BPEL process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:WsaTest3RequestMessage"/>
<!-- Reference to the message that will be returned to the requester-->
<variable name="outputVariable"
messageType="client:WsaTest3ResponseMessage"/>
<variable name="Invoke_1_wsademo_InputVariable" messageType="ns1:wsademo"/>
<variable name="Invoke_1_wsademo_OutputVariable"
messageType="ns1:wsademoResult"/>
</variables>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in WsaTest3.wsdl) -->
<receive name="receiveInput" partnerLink="client" portType="client:WsaTest3"
operation="process" variable="inputVariable" createInstance="yes"/>
<!-- Generate reply to synchronous request -->
<assign name="Assign_1">
<copy>
<from variable="inputVariable" part="payload"
query="/client:WsaTest3ProcessRequest/client:input"/>
<to variable="Invoke_1_wsademo_InputVariable" part="parameters"/>
</copy>
</assign>
<invoke name="Invoke_1" partnerLink="wsademo" portType="ns1:wsademoPort"
operation="wsademo" inputVariable="Invoke_1_wsademo_InputVariable"
outputVariable="Invoke_1_wsademo_OutputVariable"/>
<assign name="Assign_2">
<copy>
<from variable="Invoke_1_wsademo_OutputVariable" part="parameters"/>
<to variable="outputVariable" part="payload"
query="/client:WsaTest3ProcessResponse/client:result"/>
</copy>
</assign>
<reply name="replyOutput" partnerLink="client" portType="client:WsaTest3"
operation="process" variable="outputVariable"/>
</sequence>
</process>

-Wayne Stielau
Open Text Corporation
Irvine, CA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2006
Added on Oct 5 2006
1 comment
699 views