Note that there are some explanatory texts on larger screens.

plurals
  1. POCalling simple WSDL service with BPEL
    text
    copied!<p>I'm trying to create a simple BPEL process in Sonic Workbench, that will call a WSDL webservice I created. I am getting this error message after running the process:</p> <pre><code>Cannot send message to anonymous endpoint for "{http://informationservice.project.com/}InformationService" in partnerLink information </code></pre> <p>I have no idea what this error message means and googling doesn't help. </p> <p>Thanks</p> <p>Edit: BPEL Code:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;process expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0" name="testB" queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0" targetNamespace="urn:bpel:testB" xml:ID="1" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:plk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:psbx="urn:parasoft:bpel:extension" xmlns:tns="urn:bpel:testB" xmlns:tns0="http://informationservice.project.com/" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;import importType="http://schemas.xmlsoap.org/wsdl/" location="information.wsdl" namespace="http://informationservice.project.com/"/&gt; &lt;import importType="http://schemas.xmlsoap.org/wsdl/" location="testB.wsdl" namespace="urn:bpel:testB"/&gt; &lt;partnerLinks&gt; &lt;partnerLink initializePartnerRole="no" name="information" partnerLinkType="tns0:InformationService" partnerRole="InformationService"/&gt; &lt;partnerLink myRole="testB" name="testB" partnerLinkType="tns:testB"/&gt; &lt;/partnerLinks&gt; &lt;variables&gt; &lt;variable messageType="tns0:getAirportsForCity" name="input"/&gt; &lt;variable messageType="tns:testBRequest" name="testBRequest"/&gt; &lt;variable messageType="tns:testBResponse" name="testBResponse"/&gt; &lt;variable messageType="tns0:getAirportsForCityResponse" name="output"/&gt; &lt;/variables&gt; &lt;sequence xml:ID="2"&gt; &lt;receive createInstance="yes" name="testB" operation="testB" partnerLink="testB" portType="tns:testBPortType" variable="testBRequest" xml:ID="3"/&gt; &lt;assign xml:ID="7"&gt; &lt;copy xmlns:psbx="urn:parasoft:bpel:extension"&gt; &lt;from&gt; &lt;literal&gt; &lt;ns1:getAirportsForCity xmlns="" xmlns:ns1="http://informationservice.project.com/"&gt; &lt;city/&gt; &lt;/ns1:getAirportsForCity&gt; &lt;/literal&gt; &lt;/from&gt; &lt;to part="parameters" variable="input"/&gt; &lt;/copy&gt; &lt;copy xmlns:psbx="urn:parasoft:bpel:extension"&gt; &lt;from part="parameters" variable="testBRequest"&gt; &lt;query&gt;/child::node()[local-name()='testB']/child::node()[local-name()='city']&lt;/query&gt; &lt;/from&gt; &lt;to part="parameters" variable="input"&gt; &lt;query&gt;/child::node()[local-name()='getAirportsForCity']/child::node()[local-name()='city']&lt;/query&gt; &lt;/to&gt; &lt;/copy&gt; &lt;/assign&gt; &lt;invoke inputVariable="input" operation="getAirportsForCity" outputVariable="output" partnerLink="information" portType="tns0:InformationService" xml:ID="6"/&gt; &lt;assign xml:ID="4"&gt; &lt;copy&gt; &lt;from&gt; &lt;literal&gt; &lt;ns1:testBResponse xmlns="" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="urn:bpel:testB"&gt; &lt;airport/&gt; &lt;/ns1:testBResponse&gt; &lt;/literal&gt; &lt;/from&gt; &lt;to part="parameters" variable="testBResponse"/&gt; &lt;/copy&gt; &lt;copy xmlns:psbx="urn:parasoft:bpel:extension"&gt; &lt;from part="parameters" variable="output"&gt; &lt;query&gt;/child::node()[local-name()='getAirportsForCityResponse']/child::node()[local-name()='return']&lt;/query&gt; &lt;/from&gt; &lt;to part="parameters" variable="testBResponse"&gt; &lt;query&gt;/child::node()[local-name()='testBResponse']/child::node()[local-name()='airport']&lt;/query&gt; &lt;/to&gt; &lt;/copy&gt; &lt;/assign&gt; &lt;reply name="testB" operation="testB" partnerLink="testB" portType="tns:testBPortType" variable="testBResponse" xml:ID="5"/&gt; &lt;/sequence&gt; &lt;/process&gt; </code></pre> <p>When I change <code>initializePartnerRole</code> to <code>yes</code> I've different error:</p> <pre><code>No endpoint specified to initialize partner role for partnerLink information </code></pre> <p>information.wsdl code:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;wsdl:definitions name="InformationService" targetNamespace="http://informationservice.project.com/" xmlns="" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:ns2="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://informationservice.project.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;ns2:partnerLinkType name="InformationService"&gt; &lt;ns2:role name="InformationService" portType="tns:InformationService"/&gt; &lt;/ns2:partnerLinkType&gt; &lt;wsdl:types&gt; &lt;xs:schema targetNamespace="http://informationservice.project.com/" version="1.0" xmlns:tns="http://informationservice.project.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; &lt;xs:element name="getAirportsForCity"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="city" type="xs:string"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="getAirportsForCityResponse"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="xs:string"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="getCities" type="tns:getCities"/&gt; &lt;xs:element name="getCitiesResponse" type="tns:getCitiesResponse"/&gt; &lt;xs:complexType name="getCities"&gt; &lt;xs:sequence/&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="getCitiesResponse"&gt; &lt;xs:sequence&gt; &lt;xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="xs:string"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:schema&gt; &lt;/wsdl:types&gt; &lt;wsdl:message name="getCities"&gt; &lt;wsdl:part element="tns:getCities" name="parameters"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getCitiesResponse"&gt; &lt;wsdl:part element="tns:getCitiesResponse" name="parameters"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getAirportsForCityResponse"&gt; &lt;wsdl:part element="tns:getAirportsForCityResponse" name="parameters"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getAirportsForCity"&gt; &lt;wsdl:part element="tns:getAirportsForCity" name="parameters"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:portType name="InformationService"&gt; &lt;wsdl:operation name="getCities"&gt; &lt;wsdl:input message="tns:getCities" name="getCities"/&gt; &lt;wsdl:output message="tns:getCitiesResponse" name="getCitiesResponse"/&gt; &lt;/wsdl:operation&gt; &lt;wsdl:operation name="getAirportsForCity"&gt; &lt;wsdl:input message="tns:getAirportsForCity" name="getAirportsForCity"/&gt; &lt;wsdl:output message="tns:getAirportsForCityResponse" name="getAirportsForCityResponse"/&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:portType&gt; &lt;wsdl:binding name="InformationServiceSoapBinding" type="tns:InformationService"&gt; &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt; &lt;wsdl:operation name="getCities"&gt; &lt;soap:operation soapAction="" style="document"/&gt; &lt;wsdl:input name="getCities"&gt; &lt;soap:body use="literal"/&gt; &lt;/wsdl:input&gt; &lt;wsdl:output name="getCitiesResponse"&gt; &lt;soap:body use="literal"/&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; &lt;wsdl:operation name="getAirportsForCity"&gt; &lt;soap:operation soapAction="" style="document"/&gt; &lt;wsdl:input name="getAirportsForCity"&gt; &lt;soap:body use="literal"/&gt; &lt;/wsdl:input&gt; &lt;wsdl:output name="getAirportsForCityResponse"&gt; &lt;soap:body use="literal"/&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:binding&gt; &lt;wsdl:service name="InformationService"&gt; &lt;wsdl:port binding="tns:InformationServiceSoapBinding" name="InformationServiceEndpoint"&gt; &lt;soap:address location="http://localhost:9002/information"/&gt; &lt;/wsdl:port&gt; &lt;/wsdl:service&gt; &lt;/wsdl:definitions&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload