Hi all,

I am currently trying to call a simple external web-service using
<invoke> and getting a reply. My service gets called and the reply is
send. I digged into the source a bit and
MessageExchangeImpl.setResponse(Message outputMessage) is called and  as
far as I understand this means, that the message is fine. But then,
later in BpelRuntimeContextImpl.invocationResponse2(String mexid,
InvokeResponseChannel responseChannel), I get a MEX that has no response
attached to it. Am I right, that there should be one, as long as the
MEX-ID is the same? The MEX I get has also its status set to ASYNC, so
the error mentioned in the topic appears. I will attach my BPEL and WSDL
files, maybe I'm just too stupid to understand BPEL.

regards,
Jan


Attachment: deploy.xml
Description: application/xml

Attachment: helloWorld.wsdl
Description: application/xml

Attachment: HelloWorld2.wsdl
Description: application/xml

<process name="HelloWorld2"
    targetNamespace="http://ode/bpel/unit-test"; 
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
    xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
    xmlns:tns="http://ode/bpel/unit-test";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:test="http://ode/bpel/unit-test.wsdl";
    xmlns:test2="http://localhost:8081/axis/helloWorld.jws";
    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">

  <import location="HelloWorld2.wsdl"
     namespace="http://ode/bpel/unit-test.wsdl";
     importType="http://schemas.xmlsoap.org/wsdl/"; />

  <import location="helloWorld.wsdl"
     namespace="http://localhost:8081/axis/helloWorld.jws";
     importType="http://schemas.xmlsoap.org/wsdl/"; />

   <partnerLinks>
      <partnerLink name="helloPartnerLink" 
         partnerLinkType="test:HelloPartnerLinkType" 
         myRole="me"/>
      <partnerLink name="helloPartnerLink2"
         partnerLinkType="test2:HelloPartnerLinkType2" 
        partnerRole="you" initializePartnerRole="yes"/>
   </partnerLinks>
    
   <variables>
     <variable name="myVar" messageType="test:HelloMessage"/>
     <variable name="myVar2" messageType="test2:helloRequest"/>
     <variable name="myVar3" messageType="test2:helloResponse"/>
     <variable name="tmpVar" type="xsd:string"/>
   </variables>

  <correlationSets>
    <correlationSet name="dummyCorr" properties="test:dummyProp" />
  </correlationSets>

   <sequence>
       <receive
          name="start"
          partnerLink="helloPartnerLink"
          portType="test:HelloPortType"
          operation="hello"
          variable="myVar"
          createInstance="yes"/>
<assign name="1">
          <copy>
              <from variable="myVar" part="TestPart"/>
              <to variable="tmpVar"/>
          </copy>
          <copy>
              <from variable="tmpVar" />
              <to variable="myVar2" part="TestPart"/>
          </copy>
</assign>
<invoke name="meep"
        partnerLink="helloPartnerLink2"
        portType="test2:helloWorld"
        operation="hello"
        inputVariable="myVar2"
        outputVariable="myVar3">
      <correlations>
        <correlation set="dummyCorr" initiate="yes" pattern="request"/>
      </correlations>
</invoke>
<assign name="2">
          <copy>
              <from variable="myVar3" part="helloReturn"/>
              <to variable="tmpVar"/>
          </copy>
          <copy>
              <from variable="tmpVar" />
              <to variable="myVar" part="TestPart"/>
          </copy>
</assign>
       <reply name="end"  
              partnerLink="helloPartnerLink"
              portType="test:HelloPortType" 
              operation="helloOut"
              variable="myVar">
</reply>
   </sequence>
</process>

Reply via email to