You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by binh nguyen <li...@gmail.com> on 2008/11/11 03:56:12 UTC

An error when run BPEL

Hi all,
I encounter the same error when run some BPEL processes.
I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
SOAPUI to test the result of BPEL after having deployed. The deployment
of the processes is OK, but when tested with soapUI, there is following
error:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring xmlns:axis2ns11="
http://docs.oasis-open.org/wsbpel/2.0/process/executable
">axis2ns11:selectionFailure</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

Any one has any idea about this kind of error?
Thank you!
Binh.

Re: An error when run BPEL

Posted by Alex Boisvert <bo...@intalio.com>.
*http://ode.apache.org/faq.html
*

*Q.* *My process fails with a selectionFailure; What can I do?*
*A.* BPEL expects a *single* element to be selected when evaluating <to> and
<from> expressions, and a selectionFailure fault is thrown if zero or more
than one element are selected.

If you get zero element, double-check your namespace prefix and bindings.
Also, remember that you must initialize your variables (most often with
<literal>'s) before assigning into them, unless your are reassigning the
whole variable (e.g. directly into $variable, or $variable.part). To debug
assignments, you can set the "org.apache.ode" logging category to DEBUG in
order to see the content of variables as the process executes.


On Mon, Nov 10, 2008 at 6:56 PM, binh nguyen <li...@gmail.com> wrote:

> Hi all,
> I encounter the same error when run some BPEL processes.
> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
> SOAPUI to test the result of BPEL after having deployed. The deployment
> of the processes is OK, but when tested with soapUI, there is following
> error:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
>   <soapenv:Body>
>      <soapenv:Fault>
>         <faultcode>soapenv:Server</faultcode>
>         <faultstring xmlns:axis2ns11="
> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> ">axis2ns11:selectionFailure</faultstring>
>         <detail/>
>      </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>
>
> Any one has any idea about this kind of error?
> Thank you!
> Binh.
>

Re: An error when run BPEL

Posted by Alex Boisvert <bo...@intalio.com>.
Binh,

Please search the archive for threads related to "selectionFailure".   We've
provided many examples on how to resolve this in the past.

alex


On Tue, Nov 11, 2008 at 9:34 PM, binh nguyen <li...@gmail.com> wrote:

> Hi Rathar and Alex,
> Thank you for your response, but I still do not know more concretely
>  how to correct the initialization of the variables. Here I show my Bpel
> and related WSDL and Schema files. Please take a look and show
> me what I need to do to correct the error.
>
> BPEL file: testBP.bpel
>
> <?xml version="1.0" encoding="UTF-8"?>
> <process
>    name="testBP"
>    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    xmlns:sxt="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>    xmlns:sxed="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>
>    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>        location="testBP.wsdl"
>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>    <import namespace="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>        location="StringWSServiceWrapper.wsdl"
>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>    <import namespace="http://MyWebServices/"
>        location="StringWSService.wsdl"
>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>
>    <partnerLinks>
>        <partnerLink name="StringPL"
>            xmlns:tns="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>            partnerLinkType="tns:StringWSLinkType"
> partnerRole="StringWSRole"
>            initializePartnerRole="yes"/>
>        <partnerLink name="TestPartnerLink"
>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>    </partnerLinks>
>    <variables>
>        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>            messageType="tns:reverseResponse"/>
>        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>            messageType="tns:reverse"/>
>        <variable name="TestBPOperationOut" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP"
>            messageType="tns:testBPOperationResponse"/>
>        <variable name="TestBPOperationIn" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP"
>            messageType="tns:testBPOperationRequest"/>
>    </variables>
>    <sequence>
>        <receive name="Receive1" createInstance="yes"
>            partnerLink="TestPartnerLink"
>            operation="testBPOperation"
>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>            portType="tns:testBPPortType"
>            variable="TestBPOperationIn"/>
>        <assign name="Assign1">
>            <copy>
>                <from variable="TestBPOperationIn" part="partIn"/>
>                <to>$ReverseIn.parameters/inputString</to>
>            </copy>
>        </assign>
>        <invoke name="Invoke1" partnerLink="StringPL"
>            operation="reverse" xmlns:tns="http://MyWebServices/"
>            portType="tns:StringWS"
>            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>        <assign name="Assign2">
>            <copy>
>                <from>$ReverseOut.parameters/return</from>
>                <to variable="TestBPOperationOut" part="partOut"/>
>            </copy>
>        </assign>
>        <reply name="Reply1" partnerLink="TestPartnerLink"
>            operation="testBPOperation"
>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>            portType="tns:testBPPortType"
>            variable="TestBPOperationOut"/>
>    </sequence>
> </process>
>
> ------------------------------
> WSDL File: testBP.wsdl
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="testBP" targetNamespace="
> http://j2ee.netbeans.org/wsdl/testBP"
>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/">
>    <types/>
>    <message name="testBPOperationRequest">
>        <part name="partIn" type="xsd:string"/>
>    </message>
>    <message name="testBPOperationResponse">
>        <part name="partOut" type="xsd:string"/>
>    </message>
>    <portType name="testBPPortType">
>        <operation name="testBPOperation">
>            <input name="input1" message="tns:testBPOperationRequest"/>
>            <output name="output1" message="tns:testBPOperationResponse"/>
>        </operation>
>    </portType>
>    <binding name="testBPBinding" type="tns:testBPPortType">
>        <soap:binding style="rpc" transport="
> http://schemas.xmlsoap.org/soap/http"/>
>        <operation name="testBPOperation">
>            <soap:operation/>
>            <input name="input1">
>                <soap:body use="literal" namespace="
> http://j2ee.netbeans.org/wsdl/testBP"/>
>            </input>
>            <output name="output1">
>                <soap:body use="literal" namespace="
> http://j2ee.netbeans.org/wsdl/testBP"/>
>            </output>
>        </operation>
>    </binding>
>    <service name="testBPService">
>        <port name="testBPPort" binding="tns:testBPBinding">
>            <soap:address location="
> http://localhost:8084/ode/processes/testBP"/>
>        </port>
>    </service>
>    <plnk:partnerLinkType name="testBPLT">
>
>        <plnk:role name="testBPPortTypeRole" portType="tns:testBPPortType"/>
>    </plnk:partnerLinkType>
> </definitions>
>
> ------------------------------
> WSDL file: StringWSService.wsdl
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is
> JAX-WS RI 2.1.4-b01-. -->
> <definitions targetNamespace="http://MyWebServices/"
> name="StringWSService"
> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://MyWebServices/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/">
>  <types>
>    <xsd:schema>
>      <xsd:import namespace="http://MyWebServices/"
> schemaLocation="StringWSService_schema1.xsd"/>
>    </xsd:schema>
>  </types>
>  <message name="testString">
>    <part name="parameters" element="tns:testString"/>
>  </message>
>  <message name="testStringResponse">
>    <part name="parameters" element="tns:testStringResponse"/>
>  </message>
>  <message name="reverse">
>    <part name="parameters" element="tns:reverse"/>
>  </message>
>  <message name="reverseResponse">
>    <part name="parameters" element="tns:reverseResponse"/>
>  </message>
>  <portType name="StringWS">
>    <operation name="testString">
>      <input message="tns:testString"/>
>      <output message="tns:testStringResponse"/>
>    </operation>
>    <operation name="reverse">
>      <input message="tns:reverse"/>
>      <output message="tns:reverseResponse"/>
>    </operation>
>  </portType>
>  <binding name="StringWSPortBinding" type="tns:StringWS">
>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/>
>    <operation name="testString">
>      <soap:operation soapAction=""/>
>      <input>
>        <soap:body use="literal"/>
>      </input>
>      <output>
>        <soap:body use="literal"/>
>      </output>
>    </operation>
>    <operation name="reverse">
>      <soap:operation soapAction=""/>
>      <input>
>        <soap:body use="literal"/>
>      </input>
>      <output>
>        <soap:body use="literal"/>
>      </output>
>    </operation>
>  </binding>
>  <service name="StringWSService">
>    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>    </port>
>  </service>
> </definitions>
>
> ------------------------------
> WSDL file: StringWSServiceWrapper.wsdl
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <definitions
>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> name="StringWSServiceWrapper" targetNamespace="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
> http://MyWebServices/">
>    <import location="StringWSService.wsdl" namespace="
> http://MyWebServices/
> "/>
>    <plnk:partnerLinkType name="StringWSLinkType">
>        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>    </plnk:partnerLinkType>
> </definitions>
>
> ------------------------------
> Schema WSDL file:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
> xmlns:tns="
> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>
>  <xs:element name="reverseResponse" nillable="true"
> type="tns:reverseResponse"/>
>
>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>
>  <xs:element name="testStringResponse" nillable="true"
> type="tns:testStringResponse"/>
>
>  <xs:complexType name="testString">
>    <xs:sequence/>
>  </xs:complexType>
>
>  <xs:complexType name="testStringResponse">
>    <xs:sequence>
>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
>
>  <xs:complexType name="reverse">
>    <xs:sequence>
>      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
>
>  <xs:complexType name="reverseResponse">
>    <xs:sequence>
>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
> </xs:schema>
>
> ------------------------------
>
> Thank you very much!
> Binh.
>
>
>
> 2008/11/11 ratha <ra...@wso2.com>
>
> > Hi Binh,
> >
> > I also faced such issue with SOAPUI. Check your assign activity whether
> you
> > assigned values correctly for the 'from' and 'to' parts.
> >
> > Regards
> > -ratha.
> >
> > binh nguyen wrote:
> >
> >> Hi all,
> >> I encounter the same error when run some BPEL processes.
> >> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
> >> SOAPUI to test the result of BPEL after having deployed. The deployment
> >> of the processes is OK, but when tested with soapUI, there is following
> >> error:
> >>
> >> <soapenv:Envelope xmlns:soapenv="
> >> http://schemas.xmlsoap.org/soap/envelope/">
> >>   <soapenv:Body>
> >>      <soapenv:Fault>
> >>         <faultcode>soapenv:Server</faultcode>
> >>         <faultstring xmlns:axis2ns11="
> >> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> >> ">axis2ns11:selectionFailure</faultstring>
> >>         <detail/>
> >>      </soapenv:Fault>
> >>   </soapenv:Body>
> >> </soapenv:Envelope>
> >>
> >> Any one has any idea about this kind of error?
> >> Thank you!
> >> Binh.
> >>
> >>
>  ------------------------------------------------------------------------
> >>
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
> >> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
> >>
> >>
> >>
> >
> >
>

Re: An error when run BPEL

Posted by ratha <ra...@wso2.com>.
Hi Binh,
Exactly I couldn't figure out. But the variable declarations in the BPEL 
file is complex to me. I can suggest the following recommendations,

    * Use different names for messages and elemente(eg;-reverseMessage,
      reverse)
    * Create a separate wsdl file where declare your messages according
      to your part name,as follows

<wsdl:message name="reverseMessage">
    <wsdl:part element="tns::reverse" name="Parameter"/>
  </wsdl:message>

    * then defdine schema as like

  <xs:element name="reverse" type="tns:reverse"/>
<xs:complexType name="reverse">
     <xs:sequence>
           <xs:element name="Reverse" type="tns:reverse" />
               </xs:sequence>
    </xs:complexType>

    * For ReverseIn, ReverseOut variables you assigned the message
      types. Thats right. But i think you didn't define the element
      correctly (inputString and return).That is the error(I think :-)
      ). Namespace makes trouble.
    * Keep your MessageWSDL file and schema file seperately. Import the
      scma into your Message.wsdl file,that would be easy.

    * SOAP action haven't defined(dont know its necessary)

would be:-"http://MyWebServices/reverse"

 <operation name="reverse">
      <soap:operation soapAction=""/>


Hope this will help you a bit ..
Regards,
Ratha.

binh nguyen wrote:
> Hi Ratha,
>
> If you sent your whole WSDL file correctly..where is your SOAP bindings with
>   
>> relevant PORTs?(without bindings you cannot test,Isn't it?)
>>     
>
>
> That's right. You can see that in my WSDL, the Binding and Port are already
> in there. Here I show it again so you can check it for me whether or not
> there is any error there.
>
> ........
> <binding name="StringWSPortBinding" type="tns:StringWS">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/>
>     <operation name="testString">
>       <soap:operation soapAction=""/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="reverse">
>       <soap:operation soapAction=""/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="StringWSService">
>     <port name="StringWSPort" binding="tns:StringWSPortBinding">
>       <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>     </port>
>   </service>
> .........
>
> Thanks!
> Cheers,
> Binh.
>
>
> 2008/11/12 ratha <ra...@wso2.com>
>
>   
>> Hi Binh,
>> I'm also new to this subject. Might be my reply is wrong. :-( .
>> If you sent your whole WSDL file correctly..where is your SOAP bindings
>> with relevant PORTs?(without bindings you cannot test,Isn't it?)
>>
>>
>> Regards,
>> Ratha.
>>
>> binh nguyen wrote:
>>
>>     
>>> Hi Ratha, Alex and others,
>>>
>>> Thank you very much for your suggestion.
>>> But it seems to me that the error is not in the schema file, because of
>>> two
>>> reasons:
>>> -The fisrt one is that this schema and its WSDL are automatically created
>>> when the Web service is developed, and this WS runs well
>>> - The second reason is that when other operation testString() that is also
>>> in this WSDL and this schema but does not have Input (Output only), is
>>> invoked, it works.
>>>
>>> So I guess that the error lies some where in the assign activiy, but I
>>> still
>>> can not sort it out.
>>> I will follow the Alex's advice to search in the archive. In the meantime,
>>> if you have any
>>> new ideas about this issue, please let me know!
>>>
>>> Many thanks!
>>> Cheers,
>>> Binh.
>>>
>>> 2008/11/12 ratha <ra...@wso2.com>
>>>
>>>
>>>
>>>       
>>>> Hi Binh,
>>>>
>>>> In your schema file where have you defined the type* 'reverse'*.? It
>>>> seems
>>>> to be error in your schema definition..(namespace refers /*"
>>>> http://MyWebServices/" )*/
>>>> /*<xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>>> xmlns:tns="
>>>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>>
>>>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>>> */
>>>> The error i got in your schema file as follows,(schema.xsd is your schema
>>>> file)
>>>> /*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was
>>>> detected
>>>> that  'tns:reverse' is in namespace ' http://MyWebServices/', but
>>>> components from this
>>>> namespace are not referenceable from schema document
>>>>
>>>> 'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'.
>>>> If this is the incorrect namespace,
>>>> perhaps the prefix of 'tns:reverse' needs to be changed. If this is the
>>>> correct namespace,  then an appropriate 'import' tag should be added to
>>>> 'file:///C:/Program%20Files/eclipse-
>>>> gany/new-configuration/testBP/schema.xsd'.*/
>>>>
>>>> /*Ps: */You are using same name space to your WSDL file(
>>>> *StringWSService.wsdl*) and the schema file...Need to change it.
>>>>
>>>> Hope this will help you.
>>>> Regards,
>>>> Ratha.
>>>>
>>>>
>>>>
>>>> binh nguyen wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> Hi Rathar and Alex,
>>>>> Thank you for your response, but I still do not know more concretely
>>>>>  how to correct the initialization of the variables. Here I show my Bpel
>>>>> and related WSDL and Schema files. Please take a look and show
>>>>> me what I need to do to correct the error.
>>>>>
>>>>> BPEL file: testBP.bpel
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <process
>>>>>   name="testBP"
>>>>>   targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>>>>   xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>>>>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>>>   xmlns:sxt="
>>>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>>>>   xmlns:sxed="
>>>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>>>>   xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>>>>
>>>>>   <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>>>>       location="testBP.wsdl"
>>>>>       importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>>>   <import namespace="
>>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>>>       location="StringWSServiceWrapper.wsdl"
>>>>>       importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>>>   <import namespace="http://MyWebServices/"
>>>>>       location="StringWSService.wsdl"
>>>>>       importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>>>
>>>>>   <partnerLinks>
>>>>>       <partnerLink name="StringPL"
>>>>>           xmlns:tns="
>>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>>>           partnerLinkType="tns:StringWSLinkType"
>>>>> partnerRole="StringWSRole"
>>>>>           initializePartnerRole="yes"/>
>>>>>       <partnerLink name="TestPartnerLink"
>>>>>           xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>>>           partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>>>>>   </partnerLinks>
>>>>>   <variables>
>>>>>       <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>>>>           messageType="tns:reverseResponse"/>
>>>>>       <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>>>>           messageType="tns:reverse"/>
>>>>>       <variable name="TestBPOperationOut" xmlns:tns="
>>>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>>>           messageType="tns:testBPOperationResponse"/>
>>>>>       <variable name="TestBPOperationIn" xmlns:tns="
>>>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>>>           messageType="tns:testBPOperationRequest"/>
>>>>>   </variables>
>>>>>   <sequence>
>>>>>       <receive name="Receive1" createInstance="yes"
>>>>>           partnerLink="TestPartnerLink"
>>>>>           operation="testBPOperation"
>>>>>           xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>>>           portType="tns:testBPPortType"
>>>>>           variable="TestBPOperationIn"/>
>>>>>       <assign name="Assign1">
>>>>>           <copy>
>>>>>               <from variable="TestBPOperationIn" part="partIn"/>
>>>>>               <to>$ReverseIn.parameters/inputString</to>
>>>>>           </copy>
>>>>>       </assign>
>>>>>       <invoke name="Invoke1" partnerLink="StringPL"
>>>>>           operation="reverse" xmlns:tns="http://MyWebServices/"
>>>>>           portType="tns:StringWS"
>>>>>           inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>>>>       <assign name="Assign2">
>>>>>           <copy>
>>>>>               <from>$ReverseOut.parameters/return</from>
>>>>>               <to variable="TestBPOperationOut" part="partOut"/>
>>>>>           </copy>
>>>>>       </assign>
>>>>>       <reply name="Reply1" partnerLink="TestPartnerLink"
>>>>>           operation="testBPOperation"
>>>>>           xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>>>           portType="tns:testBPPortType"
>>>>>           variable="TestBPOperationOut"/>
>>>>>   </sequence>
>>>>> </process>
>>>>>
>>>>> ------------------------------
>>>>> WSDL File: testBP.wsdl
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <definitions name="testBP" targetNamespace="
>>>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>>>   xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>>>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>>   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>>>>> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>>>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>>>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>>>   <types/>
>>>>>   <message name="testBPOperationRequest">
>>>>>       <part name="partIn" type="xsd:string"/>
>>>>>   </message>
>>>>>   <message name="testBPOperationResponse">
>>>>>       <part name="partOut" type="xsd:string"/>
>>>>>   </message>
>>>>>   <portType name="testBPPortType">
>>>>>       <operation name="testBPOperation">
>>>>>           <input name="input1" message="tns:testBPOperationRequest"/>
>>>>>           <output name="output1" message="tns:testBPOperationResponse"/>
>>>>>       </operation>
>>>>>   </portType>
>>>>>   <binding name="testBPBinding" type="tns:testBPPortType">
>>>>>       <soap:binding style="rpc" transport="
>>>>> http://schemas.xmlsoap.org/soap/http"/>
>>>>>       <operation name="testBPOperation">
>>>>>           <soap:operation/>
>>>>>           <input name="input1">
>>>>>               <soap:body use="literal" namespace="
>>>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>>>           </input>
>>>>>           <output name="output1">
>>>>>               <soap:body use="literal" namespace="
>>>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>>>           </output>
>>>>>       </operation>
>>>>>   </binding>
>>>>>   <service name="testBPService">
>>>>>       <port name="testBPPort" binding="tns:testBPBinding">
>>>>>           <soap:address location="
>>>>> http://localhost:8084/ode/processes/testBP"/>
>>>>>       </port>
>>>>>   </service>
>>>>>   <plnk:partnerLinkType name="testBPLT">
>>>>>
>>>>>       <plnk:role name="testBPPortTypeRole"
>>>>> portType="tns:testBPPortType"/>
>>>>>   </plnk:partnerLinkType>
>>>>> </definitions>
>>>>>
>>>>> ------------------------------
>>>>> WSDL file: StringWSService.wsdl
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>>> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
>>>>> is
>>>>> JAX-WS RI 2.1.4-b01-. -->
>>>>> <definitions targetNamespace="http://MyWebServices/"
>>>>> name="StringWSService"
>>>>> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="
>>>>> http://MyWebServices/
>>>>> "
>>>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>>>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>>>  <types>
>>>>>   <xsd:schema>
>>>>>     <xsd:import namespace="http://MyWebServices/"
>>>>> schemaLocation="StringWSService_schema1.xsd"/>
>>>>>   </xsd:schema>
>>>>>  </types>
>>>>>  <message name="testString">
>>>>>   <part name="parameters" element="tns:testString"/>
>>>>>  </message>
>>>>>  <message name="testStringResponse">
>>>>>   <part name="parameters" element="tns:testStringResponse"/>
>>>>>  </message>
>>>>>  <message name="reverse">
>>>>>   <part name="parameters" element="tns:reverse"/>
>>>>>  </message>
>>>>>  <message name="reverseResponse">
>>>>>   <part name="parameters" element="tns:reverseResponse"/>
>>>>>  </message>
>>>>>  <portType name="StringWS">
>>>>>   <operation name="testString">
>>>>>     <input message="tns:testString"/>
>>>>>     <output message="tns:testStringResponse"/>
>>>>>   </operation>
>>>>>   <operation name="reverse">
>>>>>     <input message="tns:reverse"/>
>>>>>     <output message="tns:reverseResponse"/>
>>>>>   </operation>
>>>>>  </portType>
>>>>>  <binding name="StringWSPortBinding" type="tns:StringWS">
>>>>>   <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>>>>> style="document"/>
>>>>>   <operation name="testString">
>>>>>     <soap:operation soapAction=""/>
>>>>>     <input>
>>>>>       <soap:body use="literal"/>
>>>>>     </input>
>>>>>     <output>
>>>>>       <soap:body use="literal"/>
>>>>>     </output>
>>>>>   </operation>
>>>>>   <operation name="reverse">
>>>>>     <soap:operation soapAction=""/>
>>>>>     <input>
>>>>>       <soap:body use="literal"/>
>>>>>     </input>
>>>>>     <output>
>>>>>       <soap:body use="literal"/>
>>>>>     </output>
>>>>>   </operation>
>>>>>  </binding>
>>>>>  <service name="StringWSService">
>>>>>   <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>>>>     <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>>>>   </port>
>>>>>  </service>
>>>>> </definitions>
>>>>>
>>>>> ------------------------------
>>>>> WSDL file: StringWSServiceWrapper.wsdl
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>
>>>>> <definitions
>>>>>   xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>>>   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>>>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>>> name="StringWSServiceWrapper" targetNamespace="
>>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
>>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>>> xmlns:plnk="
>>>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>>>>> http://MyWebServices/">
>>>>>   <import location="StringWSService.wsdl" namespace="
>>>>> http://MyWebServices/
>>>>> "/>
>>>>>   <plnk:partnerLinkType name="StringWSLinkType">
>>>>>       <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>>>>   </plnk:partnerLinkType>
>>>>> </definitions>
>>>>>
>>>>> ------------------------------
>>>>> Schema WSDL file:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>>> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>>>> xmlns:tns="
>>>>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>>>
>>>>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>>>>
>>>>>  <xs:element name="reverseResponse" nillable="true"
>>>>> type="tns:reverseResponse"/>
>>>>>
>>>>>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>>>>>
>>>>>  <xs:element name="testStringResponse" nillable="true"
>>>>> type="tns:testStringResponse"/>
>>>>>
>>>>>  <xs:complexType name="testString">
>>>>>   <xs:sequence/>
>>>>>  </xs:complexType>
>>>>>
>>>>>  <xs:complexType name="testStringResponse">
>>>>>   <xs:sequence>
>>>>>     <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>>>   </xs:sequence>
>>>>>  </xs:complexType>
>>>>>
>>>>>  <xs:complexType name="reverse">
>>>>>   <xs:sequence>
>>>>>     <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>>>>   </xs:sequence>
>>>>>  </xs:complexType>
>>>>>
>>>>>  <xs:complexType name="reverseResponse">
>>>>>   <xs:sequence>
>>>>>     <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>>>   </xs:sequence>
>>>>>  </xs:complexType>
>>>>> </xs:schema>
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Thank you very much!
>>>>> Binh.
>>>>>
>>>>>
>>>>>
>>>>> 2008/11/11 ratha <ra...@wso2.com>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> Hi Binh,
>>>>>>
>>>>>> I also faced such issue with SOAPUI. Check your assign activity whether
>>>>>> you
>>>>>> assigned values correctly for the 'from' and 'to' parts.
>>>>>>
>>>>>> Regards
>>>>>> -ratha.
>>>>>>
>>>>>> binh nguyen wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi all,
>>>>>>> I encounter the same error when run some BPEL processes.
>>>>>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>>>>> SOAPUI to test the result of BPEL after having deployed. The
>>>>>>> deployment
>>>>>>> of the processes is OK, but when tested with soapUI, there is
>>>>>>> following
>>>>>>> error:
>>>>>>>
>>>>>>> <soapenv:Envelope xmlns:soapenv="
>>>>>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>>>>>  <soapenv:Body>
>>>>>>>    <soapenv:Fault>
>>>>>>>       <faultcode>soapenv:Server</faultcode>
>>>>>>>       <faultstring xmlns:axis2ns11="
>>>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>>>>> ">axis2ns11:selectionFailure</faultstring>
>>>>>>>       <detail/>
>>>>>>>    </soapenv:Fault>
>>>>>>>  </soapenv:Body>
>>>>>>> </soapenv:Envelope>
>>>>>>>
>>>>>>> Any one has any idea about this kind of error?
>>>>>>> Thank you!
>>>>>>> Binh.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>> No virus found in this incoming message.
>>>>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus
>>>>>>> Database:
>>>>>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>             
>>>>>  ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>>>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>         
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>>
>>>
>>>
>>>       
>>     
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.2/1784 - Release Date: 11/12/2008 7:01 PM
>
>   


Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi Ratha,

If you sent your whole WSDL file correctly..where is your SOAP bindings with
> relevant PORTs?(without bindings you cannot test,Isn't it?)


That's right. You can see that in my WSDL, the Binding and Port are already
in there. Here I show it again so you can check it for me whether or not
there is any error there.

........
<binding name="StringWSPortBinding" type="tns:StringWS">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
    <operation name="testString">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
    <operation name="reverse">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="StringWSService">
    <port name="StringWSPort" binding="tns:StringWSPortBinding">
      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
    </port>
  </service>
.........

Thanks!
Cheers,
Binh.


2008/11/12 ratha <ra...@wso2.com>

> Hi Binh,
> I'm also new to this subject. Might be my reply is wrong. :-( .
> If you sent your whole WSDL file correctly..where is your SOAP bindings
> with relevant PORTs?(without bindings you cannot test,Isn't it?)
>
>
> Regards,
> Ratha.
>
> binh nguyen wrote:
>
>> Hi Ratha, Alex and others,
>>
>> Thank you very much for your suggestion.
>> But it seems to me that the error is not in the schema file, because of
>> two
>> reasons:
>> -The fisrt one is that this schema and its WSDL are automatically created
>> when the Web service is developed, and this WS runs well
>> - The second reason is that when other operation testString() that is also
>> in this WSDL and this schema but does not have Input (Output only), is
>> invoked, it works.
>>
>> So I guess that the error lies some where in the assign activiy, but I
>> still
>> can not sort it out.
>> I will follow the Alex's advice to search in the archive. In the meantime,
>> if you have any
>> new ideas about this issue, please let me know!
>>
>> Many thanks!
>> Cheers,
>> Binh.
>>
>> 2008/11/12 ratha <ra...@wso2.com>
>>
>>
>>
>>> Hi Binh,
>>>
>>> In your schema file where have you defined the type* 'reverse'*.? It
>>> seems
>>> to be error in your schema definition..(namespace refers /*"
>>> http://MyWebServices/" )*/
>>> /*<xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>> xmlns:tns="
>>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>
>>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>> */
>>> The error i got in your schema file as follows,(schema.xsd is your schema
>>> file)
>>> /*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was
>>> detected
>>> that  'tns:reverse' is in namespace ' http://MyWebServices/', but
>>> components from this
>>> namespace are not referenceable from schema document
>>>
>>> 'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'.
>>> If this is the incorrect namespace,
>>> perhaps the prefix of 'tns:reverse' needs to be changed. If this is the
>>> correct namespace,  then an appropriate 'import' tag should be added to
>>> 'file:///C:/Program%20Files/eclipse-
>>> gany/new-configuration/testBP/schema.xsd'.*/
>>>
>>> /*Ps: */You are using same name space to your WSDL file(
>>> *StringWSService.wsdl*) and the schema file...Need to change it.
>>>
>>> Hope this will help you.
>>> Regards,
>>> Ratha.
>>>
>>>
>>>
>>> binh nguyen wrote:
>>>
>>>
>>>
>>>> Hi Rathar and Alex,
>>>> Thank you for your response, but I still do not know more concretely
>>>>  how to correct the initialization of the variables. Here I show my Bpel
>>>> and related WSDL and Schema files. Please take a look and show
>>>> me what I need to do to correct the error.
>>>>
>>>> BPEL file: testBP.bpel
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <process
>>>>   name="testBP"
>>>>   targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>>>   xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>>>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>>   xmlns:sxt="
>>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>>>   xmlns:sxed="
>>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>>>   xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>>>
>>>>   <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>>>       location="testBP.wsdl"
>>>>       importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>>   <import namespace="
>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>>       location="StringWSServiceWrapper.wsdl"
>>>>       importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>>   <import namespace="http://MyWebServices/"
>>>>       location="StringWSService.wsdl"
>>>>       importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>>
>>>>   <partnerLinks>
>>>>       <partnerLink name="StringPL"
>>>>           xmlns:tns="
>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>>           partnerLinkType="tns:StringWSLinkType"
>>>> partnerRole="StringWSRole"
>>>>           initializePartnerRole="yes"/>
>>>>       <partnerLink name="TestPartnerLink"
>>>>           xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>>           partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>>>>   </partnerLinks>
>>>>   <variables>
>>>>       <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>>>           messageType="tns:reverseResponse"/>
>>>>       <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>>>           messageType="tns:reverse"/>
>>>>       <variable name="TestBPOperationOut" xmlns:tns="
>>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>>           messageType="tns:testBPOperationResponse"/>
>>>>       <variable name="TestBPOperationIn" xmlns:tns="
>>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>>           messageType="tns:testBPOperationRequest"/>
>>>>   </variables>
>>>>   <sequence>
>>>>       <receive name="Receive1" createInstance="yes"
>>>>           partnerLink="TestPartnerLink"
>>>>           operation="testBPOperation"
>>>>           xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>>           portType="tns:testBPPortType"
>>>>           variable="TestBPOperationIn"/>
>>>>       <assign name="Assign1">
>>>>           <copy>
>>>>               <from variable="TestBPOperationIn" part="partIn"/>
>>>>               <to>$ReverseIn.parameters/inputString</to>
>>>>           </copy>
>>>>       </assign>
>>>>       <invoke name="Invoke1" partnerLink="StringPL"
>>>>           operation="reverse" xmlns:tns="http://MyWebServices/"
>>>>           portType="tns:StringWS"
>>>>           inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>>>       <assign name="Assign2">
>>>>           <copy>
>>>>               <from>$ReverseOut.parameters/return</from>
>>>>               <to variable="TestBPOperationOut" part="partOut"/>
>>>>           </copy>
>>>>       </assign>
>>>>       <reply name="Reply1" partnerLink="TestPartnerLink"
>>>>           operation="testBPOperation"
>>>>           xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>>           portType="tns:testBPPortType"
>>>>           variable="TestBPOperationOut"/>
>>>>   </sequence>
>>>> </process>
>>>>
>>>> ------------------------------
>>>> WSDL File: testBP.wsdl
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <definitions name="testBP" targetNamespace="
>>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>>   xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>>>> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>>   <types/>
>>>>   <message name="testBPOperationRequest">
>>>>       <part name="partIn" type="xsd:string"/>
>>>>   </message>
>>>>   <message name="testBPOperationResponse">
>>>>       <part name="partOut" type="xsd:string"/>
>>>>   </message>
>>>>   <portType name="testBPPortType">
>>>>       <operation name="testBPOperation">
>>>>           <input name="input1" message="tns:testBPOperationRequest"/>
>>>>           <output name="output1" message="tns:testBPOperationResponse"/>
>>>>       </operation>
>>>>   </portType>
>>>>   <binding name="testBPBinding" type="tns:testBPPortType">
>>>>       <soap:binding style="rpc" transport="
>>>> http://schemas.xmlsoap.org/soap/http"/>
>>>>       <operation name="testBPOperation">
>>>>           <soap:operation/>
>>>>           <input name="input1">
>>>>               <soap:body use="literal" namespace="
>>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>>           </input>
>>>>           <output name="output1">
>>>>               <soap:body use="literal" namespace="
>>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>>           </output>
>>>>       </operation>
>>>>   </binding>
>>>>   <service name="testBPService">
>>>>       <port name="testBPPort" binding="tns:testBPBinding">
>>>>           <soap:address location="
>>>> http://localhost:8084/ode/processes/testBP"/>
>>>>       </port>
>>>>   </service>
>>>>   <plnk:partnerLinkType name="testBPLT">
>>>>
>>>>       <plnk:role name="testBPPortTypeRole"
>>>> portType="tns:testBPPortType"/>
>>>>   </plnk:partnerLinkType>
>>>> </definitions>
>>>>
>>>> ------------------------------
>>>> WSDL file: StringWSService.wsdl
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
>>>> is
>>>> JAX-WS RI 2.1.4-b01-. -->
>>>> <definitions targetNamespace="http://MyWebServices/"
>>>> name="StringWSService"
>>>> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="
>>>> http://MyWebServices/
>>>> "
>>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>>  <types>
>>>>   <xsd:schema>
>>>>     <xsd:import namespace="http://MyWebServices/"
>>>> schemaLocation="StringWSService_schema1.xsd"/>
>>>>   </xsd:schema>
>>>>  </types>
>>>>  <message name="testString">
>>>>   <part name="parameters" element="tns:testString"/>
>>>>  </message>
>>>>  <message name="testStringResponse">
>>>>   <part name="parameters" element="tns:testStringResponse"/>
>>>>  </message>
>>>>  <message name="reverse">
>>>>   <part name="parameters" element="tns:reverse"/>
>>>>  </message>
>>>>  <message name="reverseResponse">
>>>>   <part name="parameters" element="tns:reverseResponse"/>
>>>>  </message>
>>>>  <portType name="StringWS">
>>>>   <operation name="testString">
>>>>     <input message="tns:testString"/>
>>>>     <output message="tns:testStringResponse"/>
>>>>   </operation>
>>>>   <operation name="reverse">
>>>>     <input message="tns:reverse"/>
>>>>     <output message="tns:reverseResponse"/>
>>>>   </operation>
>>>>  </portType>
>>>>  <binding name="StringWSPortBinding" type="tns:StringWS">
>>>>   <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>>>> style="document"/>
>>>>   <operation name="testString">
>>>>     <soap:operation soapAction=""/>
>>>>     <input>
>>>>       <soap:body use="literal"/>
>>>>     </input>
>>>>     <output>
>>>>       <soap:body use="literal"/>
>>>>     </output>
>>>>   </operation>
>>>>   <operation name="reverse">
>>>>     <soap:operation soapAction=""/>
>>>>     <input>
>>>>       <soap:body use="literal"/>
>>>>     </input>
>>>>     <output>
>>>>       <soap:body use="literal"/>
>>>>     </output>
>>>>   </operation>
>>>>  </binding>
>>>>  <service name="StringWSService">
>>>>   <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>>>     <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>>>   </port>
>>>>  </service>
>>>> </definitions>
>>>>
>>>> ------------------------------
>>>> WSDL file: StringWSServiceWrapper.wsdl
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>
>>>> <definitions
>>>>   xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>>   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>> name="StringWSServiceWrapper" targetNamespace="
>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
>>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>> xmlns:plnk="
>>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>>>> http://MyWebServices/">
>>>>   <import location="StringWSService.wsdl" namespace="
>>>> http://MyWebServices/
>>>> "/>
>>>>   <plnk:partnerLinkType name="StringWSLinkType">
>>>>       <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>>>   </plnk:partnerLinkType>
>>>> </definitions>
>>>>
>>>> ------------------------------
>>>> Schema WSDL file:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>>> xmlns:tns="
>>>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>>
>>>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>>>
>>>>  <xs:element name="reverseResponse" nillable="true"
>>>> type="tns:reverseResponse"/>
>>>>
>>>>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>>>>
>>>>  <xs:element name="testStringResponse" nillable="true"
>>>> type="tns:testStringResponse"/>
>>>>
>>>>  <xs:complexType name="testString">
>>>>   <xs:sequence/>
>>>>  </xs:complexType>
>>>>
>>>>  <xs:complexType name="testStringResponse">
>>>>   <xs:sequence>
>>>>     <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>>   </xs:sequence>
>>>>  </xs:complexType>
>>>>
>>>>  <xs:complexType name="reverse">
>>>>   <xs:sequence>
>>>>     <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>>>   </xs:sequence>
>>>>  </xs:complexType>
>>>>
>>>>  <xs:complexType name="reverseResponse">
>>>>   <xs:sequence>
>>>>     <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>>   </xs:sequence>
>>>>  </xs:complexType>
>>>> </xs:schema>
>>>>
>>>> ------------------------------
>>>>
>>>> Thank you very much!
>>>> Binh.
>>>>
>>>>
>>>>
>>>> 2008/11/11 ratha <ra...@wso2.com>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Hi Binh,
>>>>>
>>>>> I also faced such issue with SOAPUI. Check your assign activity whether
>>>>> you
>>>>> assigned values correctly for the 'from' and 'to' parts.
>>>>>
>>>>> Regards
>>>>> -ratha.
>>>>>
>>>>> binh nguyen wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi all,
>>>>>> I encounter the same error when run some BPEL processes.
>>>>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>>>> SOAPUI to test the result of BPEL after having deployed. The
>>>>>> deployment
>>>>>> of the processes is OK, but when tested with soapUI, there is
>>>>>> following
>>>>>> error:
>>>>>>
>>>>>> <soapenv:Envelope xmlns:soapenv="
>>>>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>>>>  <soapenv:Body>
>>>>>>    <soapenv:Fault>
>>>>>>       <faultcode>soapenv:Server</faultcode>
>>>>>>       <faultstring xmlns:axis2ns11="
>>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>>>> ">axis2ns11:selectionFailure</faultstring>
>>>>>>       <detail/>
>>>>>>    </soapenv:Fault>
>>>>>>  </soapenv:Body>
>>>>>> </soapenv:Envelope>
>>>>>>
>>>>>> Any one has any idea about this kind of error?
>>>>>> Thank you!
>>>>>> Binh.
>>>>>>
>>>>>>
>>>>>>
>>>>>>  ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> No virus found in this incoming message.
>>>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus
>>>>>> Database:
>>>>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>  ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>
>>
>>
>
>

Re: An error when run BPEL

Posted by ratha <ra...@wso2.com>.
Hi Binh,
I'm also new to this subject. Might be my reply is wrong. :-( .
If you sent your whole WSDL file correctly..where is your SOAP bindings 
with relevant PORTs?(without bindings you cannot test,Isn't it?)

Regards,
Ratha.

binh nguyen wrote:
> Hi Ratha, Alex and others,
>
> Thank you very much for your suggestion.
> But it seems to me that the error is not in the schema file, because of two
> reasons:
> -The fisrt one is that this schema and its WSDL are automatically created
> when the Web service is developed, and this WS runs well
> - The second reason is that when other operation testString() that is also
> in this WSDL and this schema but does not have Input (Output only), is
> invoked, it works.
>
> So I guess that the error lies some where in the assign activiy, but I still
> can not sort it out.
> I will follow the Alex's advice to search in the archive. In the meantime,
> if you have any
> new ideas about this issue, please let me know!
>
> Many thanks!
> Cheers,
> Binh.
>
> 2008/11/12 ratha <ra...@wso2.com>
>
>   
>> Hi Binh,
>>
>> In your schema file where have you defined the type* 'reverse'*.? It seems
>> to be error in your schema definition..(namespace refers /*"
>> http://MyWebServices/" )*/
>> /*<xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>> xmlns:tns="
>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>
>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>> */
>> The error i got in your schema file as follows,(schema.xsd is your schema
>> file)
>> /*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was detected
>> that  'tns:reverse' is in namespace ' http://MyWebServices/', but
>> components from this
>> namespace are not referenceable from schema document
>> 'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'.
>> If this is the incorrect namespace,
>> perhaps the prefix of 'tns:reverse' needs to be changed. If this is the
>> correct namespace,  then an appropriate 'import' tag should be added to
>> 'file:///C:/Program%20Files/eclipse-
>> gany/new-configuration/testBP/schema.xsd'.*/
>>
>> /*Ps: */You are using same name space to your WSDL file(
>> *StringWSService.wsdl*) and the schema file...Need to change it.
>>
>> Hope this will help you.
>> Regards,
>> Ratha.
>>
>>
>>
>> binh nguyen wrote:
>>
>>     
>>> Hi Rathar and Alex,
>>> Thank you for your response, but I still do not know more concretely
>>>  how to correct the initialization of the variables. Here I show my Bpel
>>> and related WSDL and Schema files. Please take a look and show
>>> me what I need to do to correct the error.
>>>
>>> BPEL file: testBP.bpel
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <process
>>>    name="testBP"
>>>    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>>    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>    xmlns:sxt="
>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>>    xmlns:sxed="
>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>>    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>>
>>>    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>>        location="testBP.wsdl"
>>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    <import namespace="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>        location="StringWSServiceWrapper.wsdl"
>>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    <import namespace="http://MyWebServices/"
>>>        location="StringWSService.wsdl"
>>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>
>>>    <partnerLinks>
>>>        <partnerLink name="StringPL"
>>>            xmlns:tns="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>            partnerLinkType="tns:StringWSLinkType"
>>> partnerRole="StringWSRole"
>>>            initializePartnerRole="yes"/>
>>>        <partnerLink name="TestPartnerLink"
>>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>>>    </partnerLinks>
>>>    <variables>
>>>        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>>            messageType="tns:reverseResponse"/>
>>>        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>>            messageType="tns:reverse"/>
>>>        <variable name="TestBPOperationOut" xmlns:tns="
>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>            messageType="tns:testBPOperationResponse"/>
>>>        <variable name="TestBPOperationIn" xmlns:tns="
>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>            messageType="tns:testBPOperationRequest"/>
>>>    </variables>
>>>    <sequence>
>>>        <receive name="Receive1" createInstance="yes"
>>>            partnerLink="TestPartnerLink"
>>>            operation="testBPOperation"
>>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>            portType="tns:testBPPortType"
>>>            variable="TestBPOperationIn"/>
>>>        <assign name="Assign1">
>>>            <copy>
>>>                <from variable="TestBPOperationIn" part="partIn"/>
>>>                <to>$ReverseIn.parameters/inputString</to>
>>>            </copy>
>>>        </assign>
>>>        <invoke name="Invoke1" partnerLink="StringPL"
>>>            operation="reverse" xmlns:tns="http://MyWebServices/"
>>>            portType="tns:StringWS"
>>>            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>>        <assign name="Assign2">
>>>            <copy>
>>>                <from>$ReverseOut.parameters/return</from>
>>>                <to variable="TestBPOperationOut" part="partOut"/>
>>>            </copy>
>>>        </assign>
>>>        <reply name="Reply1" partnerLink="TestPartnerLink"
>>>            operation="testBPOperation"
>>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>            portType="tns:testBPPortType"
>>>            variable="TestBPOperationOut"/>
>>>    </sequence>
>>> </process>
>>>
>>> ------------------------------
>>> WSDL File: testBP.wsdl
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <definitions name="testBP" targetNamespace="
>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>>> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>    <types/>
>>>    <message name="testBPOperationRequest">
>>>        <part name="partIn" type="xsd:string"/>
>>>    </message>
>>>    <message name="testBPOperationResponse">
>>>        <part name="partOut" type="xsd:string"/>
>>>    </message>
>>>    <portType name="testBPPortType">
>>>        <operation name="testBPOperation">
>>>            <input name="input1" message="tns:testBPOperationRequest"/>
>>>            <output name="output1" message="tns:testBPOperationResponse"/>
>>>        </operation>
>>>    </portType>
>>>    <binding name="testBPBinding" type="tns:testBPPortType">
>>>        <soap:binding style="rpc" transport="
>>> http://schemas.xmlsoap.org/soap/http"/>
>>>        <operation name="testBPOperation">
>>>            <soap:operation/>
>>>            <input name="input1">
>>>                <soap:body use="literal" namespace="
>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>            </input>
>>>            <output name="output1">
>>>                <soap:body use="literal" namespace="
>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>            </output>
>>>        </operation>
>>>    </binding>
>>>    <service name="testBPService">
>>>        <port name="testBPPort" binding="tns:testBPBinding">
>>>            <soap:address location="
>>> http://localhost:8084/ode/processes/testBP"/>
>>>        </port>
>>>    </service>
>>>    <plnk:partnerLinkType name="testBPLT">
>>>
>>>        <plnk:role name="testBPPortTypeRole"
>>> portType="tns:testBPPortType"/>
>>>    </plnk:partnerLinkType>
>>> </definitions>
>>>
>>> ------------------------------
>>> WSDL file: StringWSService.wsdl
>>>
>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
>>> is
>>> JAX-WS RI 2.1.4-b01-. -->
>>> <definitions targetNamespace="http://MyWebServices/"
>>> name="StringWSService"
>>> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://MyWebServices/
>>> "
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>  <types>
>>>    <xsd:schema>
>>>      <xsd:import namespace="http://MyWebServices/"
>>> schemaLocation="StringWSService_schema1.xsd"/>
>>>    </xsd:schema>
>>>  </types>
>>>  <message name="testString">
>>>    <part name="parameters" element="tns:testString"/>
>>>  </message>
>>>  <message name="testStringResponse">
>>>    <part name="parameters" element="tns:testStringResponse"/>
>>>  </message>
>>>  <message name="reverse">
>>>    <part name="parameters" element="tns:reverse"/>
>>>  </message>
>>>  <message name="reverseResponse">
>>>    <part name="parameters" element="tns:reverseResponse"/>
>>>  </message>
>>>  <portType name="StringWS">
>>>    <operation name="testString">
>>>      <input message="tns:testString"/>
>>>      <output message="tns:testStringResponse"/>
>>>    </operation>
>>>    <operation name="reverse">
>>>      <input message="tns:reverse"/>
>>>      <output message="tns:reverseResponse"/>
>>>    </operation>
>>>  </portType>
>>>  <binding name="StringWSPortBinding" type="tns:StringWS">
>>>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>>> style="document"/>
>>>    <operation name="testString">
>>>      <soap:operation soapAction=""/>
>>>      <input>
>>>        <soap:body use="literal"/>
>>>      </input>
>>>      <output>
>>>        <soap:body use="literal"/>
>>>      </output>
>>>    </operation>
>>>    <operation name="reverse">
>>>      <soap:operation soapAction=""/>
>>>      <input>
>>>        <soap:body use="literal"/>
>>>      </input>
>>>      <output>
>>>        <soap:body use="literal"/>
>>>      </output>
>>>    </operation>
>>>  </binding>
>>>  <service name="StringWSService">
>>>    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>>      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>>    </port>
>>>  </service>
>>> </definitions>
>>>
>>> ------------------------------
>>> WSDL file: StringWSServiceWrapper.wsdl
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <definitions
>>>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>> name="StringWSServiceWrapper" targetNamespace="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>>> http://MyWebServices/">
>>>    <import location="StringWSService.wsdl" namespace="
>>> http://MyWebServices/
>>> "/>
>>>    <plnk:partnerLinkType name="StringWSLinkType">
>>>        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>>    </plnk:partnerLinkType>
>>> </definitions>
>>>
>>> ------------------------------
>>> Schema WSDL file:
>>>
>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>> xmlns:tns="
>>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>
>>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>>
>>>  <xs:element name="reverseResponse" nillable="true"
>>> type="tns:reverseResponse"/>
>>>
>>>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>>>
>>>  <xs:element name="testStringResponse" nillable="true"
>>> type="tns:testStringResponse"/>
>>>
>>>  <xs:complexType name="testString">
>>>    <xs:sequence/>
>>>  </xs:complexType>
>>>
>>>  <xs:complexType name="testStringResponse">
>>>    <xs:sequence>
>>>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>    </xs:sequence>
>>>  </xs:complexType>
>>>
>>>  <xs:complexType name="reverse">
>>>    <xs:sequence>
>>>      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>>    </xs:sequence>
>>>  </xs:complexType>
>>>
>>>  <xs:complexType name="reverseResponse">
>>>    <xs:sequence>
>>>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>    </xs:sequence>
>>>  </xs:complexType>
>>> </xs:schema>
>>>
>>> ------------------------------
>>>
>>> Thank you very much!
>>> Binh.
>>>
>>>
>>>
>>> 2008/11/11 ratha <ra...@wso2.com>
>>>
>>>
>>>
>>>       
>>>> Hi Binh,
>>>>
>>>> I also faced such issue with SOAPUI. Check your assign activity whether
>>>> you
>>>> assigned values correctly for the 'from' and 'to' parts.
>>>>
>>>> Regards
>>>> -ratha.
>>>>
>>>> binh nguyen wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> Hi all,
>>>>> I encounter the same error when run some BPEL processes.
>>>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>>> SOAPUI to test the result of BPEL after having deployed. The deployment
>>>>> of the processes is OK, but when tested with soapUI, there is following
>>>>> error:
>>>>>
>>>>> <soapenv:Envelope xmlns:soapenv="
>>>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>>>  <soapenv:Body>
>>>>>     <soapenv:Fault>
>>>>>        <faultcode>soapenv:Server</faultcode>
>>>>>        <faultstring xmlns:axis2ns11="
>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>>> ">axis2ns11:selectionFailure</faultstring>
>>>>>        <detail/>
>>>>>     </soapenv:Fault>
>>>>>  </soapenv:Body>
>>>>> </soapenv:Envelope>
>>>>>
>>>>> Any one has any idea about this kind of error?
>>>>> Thank you!
>>>>> Binh.
>>>>>
>>>>>
>>>>>  ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>         
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>>
>>>
>>>
>>>       
>>     
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>
>   


Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi Ratha, Alex and others,

Thank you very much for your suggestion.
But it seems to me that the error is not in the schema file, because of two
reasons:
-The fisrt one is that this schema and its WSDL are automatically created
when the Web service is developed, and this WS runs well
- The second reason is that when other operation testString() that is also
in this WSDL and this schema but does not have Input (Output only), is
invoked, it works.

So I guess that the error lies some where in the assign activiy, but I still
can not sort it out.
I will follow the Alex's advice to search in the archive. In the meantime,
if you have any
new ideas about this issue, please let me know!

Many thanks!
Cheers,
Binh.

2008/11/12 ratha <ra...@wso2.com>

>
> Hi Binh,
>
> In your schema file where have you defined the type* 'reverse'*.? It seems
> to be error in your schema definition..(namespace refers /*"
> http://MyWebServices/" )*/
> /*<xs:schema version="1.0" targetNamespace="http://MyWebServices/"
> xmlns:tns="
> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
> */
> The error i got in your schema file as follows,(schema.xsd is your schema
> file)
> /*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was detected
> that  'tns:reverse' is in namespace ' http://MyWebServices/', but
> components from this
> namespace are not referenceable from schema document
> 'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'.
> If this is the incorrect namespace,
> perhaps the prefix of 'tns:reverse' needs to be changed. If this is the
> correct namespace,  then an appropriate 'import' tag should be added to
> 'file:///C:/Program%20Files/eclipse-
> gany/new-configuration/testBP/schema.xsd'.*/
>
> /*Ps: */You are using same name space to your WSDL file(
> *StringWSService.wsdl*) and the schema file...Need to change it.
>
> Hope this will help you.
> Regards,
> Ratha.
>
>
>
> binh nguyen wrote:
>
>> Hi Rathar and Alex,
>> Thank you for your response, but I still do not know more concretely
>>  how to correct the initialization of the variables. Here I show my Bpel
>> and related WSDL and Schema files. Please take a look and show
>> me what I need to do to correct the error.
>>
>> BPEL file: testBP.bpel
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <process
>>    name="testBP"
>>    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>    xmlns:sxt="
>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>    xmlns:sxed="
>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>
>>    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>        location="testBP.wsdl"
>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>    <import namespace="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>        location="StringWSServiceWrapper.wsdl"
>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>    <import namespace="http://MyWebServices/"
>>        location="StringWSService.wsdl"
>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>
>>    <partnerLinks>
>>        <partnerLink name="StringPL"
>>            xmlns:tns="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>            partnerLinkType="tns:StringWSLinkType"
>> partnerRole="StringWSRole"
>>            initializePartnerRole="yes"/>
>>        <partnerLink name="TestPartnerLink"
>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>>    </partnerLinks>
>>    <variables>
>>        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>            messageType="tns:reverseResponse"/>
>>        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>            messageType="tns:reverse"/>
>>        <variable name="TestBPOperationOut" xmlns:tns="
>> http://j2ee.netbeans.org/wsdl/testBP"
>>            messageType="tns:testBPOperationResponse"/>
>>        <variable name="TestBPOperationIn" xmlns:tns="
>> http://j2ee.netbeans.org/wsdl/testBP"
>>            messageType="tns:testBPOperationRequest"/>
>>    </variables>
>>    <sequence>
>>        <receive name="Receive1" createInstance="yes"
>>            partnerLink="TestPartnerLink"
>>            operation="testBPOperation"
>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>            portType="tns:testBPPortType"
>>            variable="TestBPOperationIn"/>
>>        <assign name="Assign1">
>>            <copy>
>>                <from variable="TestBPOperationIn" part="partIn"/>
>>                <to>$ReverseIn.parameters/inputString</to>
>>            </copy>
>>        </assign>
>>        <invoke name="Invoke1" partnerLink="StringPL"
>>            operation="reverse" xmlns:tns="http://MyWebServices/"
>>            portType="tns:StringWS"
>>            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>        <assign name="Assign2">
>>            <copy>
>>                <from>$ReverseOut.parameters/return</from>
>>                <to variable="TestBPOperationOut" part="partOut"/>
>>            </copy>
>>        </assign>
>>        <reply name="Reply1" partnerLink="TestPartnerLink"
>>            operation="testBPOperation"
>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>            portType="tns:testBPPortType"
>>            variable="TestBPOperationOut"/>
>>    </sequence>
>> </process>
>>
>> ------------------------------
>> WSDL File: testBP.wsdl
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <definitions name="testBP" targetNamespace="
>> http://j2ee.netbeans.org/wsdl/testBP"
>>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>> http://schemas.xmlsoap.org/wsdl/soap/">
>>    <types/>
>>    <message name="testBPOperationRequest">
>>        <part name="partIn" type="xsd:string"/>
>>    </message>
>>    <message name="testBPOperationResponse">
>>        <part name="partOut" type="xsd:string"/>
>>    </message>
>>    <portType name="testBPPortType">
>>        <operation name="testBPOperation">
>>            <input name="input1" message="tns:testBPOperationRequest"/>
>>            <output name="output1" message="tns:testBPOperationResponse"/>
>>        </operation>
>>    </portType>
>>    <binding name="testBPBinding" type="tns:testBPPortType">
>>        <soap:binding style="rpc" transport="
>> http://schemas.xmlsoap.org/soap/http"/>
>>        <operation name="testBPOperation">
>>            <soap:operation/>
>>            <input name="input1">
>>                <soap:body use="literal" namespace="
>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>            </input>
>>            <output name="output1">
>>                <soap:body use="literal" namespace="
>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>            </output>
>>        </operation>
>>    </binding>
>>    <service name="testBPService">
>>        <port name="testBPPort" binding="tns:testBPBinding">
>>            <soap:address location="
>> http://localhost:8084/ode/processes/testBP"/>
>>        </port>
>>    </service>
>>    <plnk:partnerLinkType name="testBPLT">
>>
>>        <plnk:role name="testBPPortTypeRole"
>> portType="tns:testBPPortType"/>
>>    </plnk:partnerLinkType>
>> </definitions>
>>
>> ------------------------------
>> WSDL file: StringWSService.wsdl
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
>> is
>> JAX-WS RI 2.1.4-b01-. -->
>> <definitions targetNamespace="http://MyWebServices/"
>> name="StringWSService"
>> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://MyWebServices/
>> "
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>> http://schemas.xmlsoap.org/wsdl/soap/">
>>  <types>
>>    <xsd:schema>
>>      <xsd:import namespace="http://MyWebServices/"
>> schemaLocation="StringWSService_schema1.xsd"/>
>>    </xsd:schema>
>>  </types>
>>  <message name="testString">
>>    <part name="parameters" element="tns:testString"/>
>>  </message>
>>  <message name="testStringResponse">
>>    <part name="parameters" element="tns:testStringResponse"/>
>>  </message>
>>  <message name="reverse">
>>    <part name="parameters" element="tns:reverse"/>
>>  </message>
>>  <message name="reverseResponse">
>>    <part name="parameters" element="tns:reverseResponse"/>
>>  </message>
>>  <portType name="StringWS">
>>    <operation name="testString">
>>      <input message="tns:testString"/>
>>      <output message="tns:testStringResponse"/>
>>    </operation>
>>    <operation name="reverse">
>>      <input message="tns:reverse"/>
>>      <output message="tns:reverseResponse"/>
>>    </operation>
>>  </portType>
>>  <binding name="StringWSPortBinding" type="tns:StringWS">
>>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>> style="document"/>
>>    <operation name="testString">
>>      <soap:operation soapAction=""/>
>>      <input>
>>        <soap:body use="literal"/>
>>      </input>
>>      <output>
>>        <soap:body use="literal"/>
>>      </output>
>>    </operation>
>>    <operation name="reverse">
>>      <soap:operation soapAction=""/>
>>      <input>
>>        <soap:body use="literal"/>
>>      </input>
>>      <output>
>>        <soap:body use="literal"/>
>>      </output>
>>    </operation>
>>  </binding>
>>  <service name="StringWSService">
>>    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>    </port>
>>  </service>
>> </definitions>
>>
>> ------------------------------
>> WSDL file: StringWSServiceWrapper.wsdl
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <definitions
>>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> name="StringWSServiceWrapper" targetNamespace="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>> http://MyWebServices/">
>>    <import location="StringWSService.wsdl" namespace="
>> http://MyWebServices/
>> "/>
>>    <plnk:partnerLinkType name="StringWSLinkType">
>>        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>    </plnk:partnerLinkType>
>> </definitions>
>>
>> ------------------------------
>> Schema WSDL file:
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>> xmlns:tns="
>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>
>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>
>>  <xs:element name="reverseResponse" nillable="true"
>> type="tns:reverseResponse"/>
>>
>>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>>
>>  <xs:element name="testStringResponse" nillable="true"
>> type="tns:testStringResponse"/>
>>
>>  <xs:complexType name="testString">
>>    <xs:sequence/>
>>  </xs:complexType>
>>
>>  <xs:complexType name="testStringResponse">
>>    <xs:sequence>
>>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>    </xs:sequence>
>>  </xs:complexType>
>>
>>  <xs:complexType name="reverse">
>>    <xs:sequence>
>>      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>    </xs:sequence>
>>  </xs:complexType>
>>
>>  <xs:complexType name="reverseResponse">
>>    <xs:sequence>
>>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>    </xs:sequence>
>>  </xs:complexType>
>> </xs:schema>
>>
>> ------------------------------
>>
>> Thank you very much!
>> Binh.
>>
>>
>>
>> 2008/11/11 ratha <ra...@wso2.com>
>>
>>
>>
>>> Hi Binh,
>>>
>>> I also faced such issue with SOAPUI. Check your assign activity whether
>>> you
>>> assigned values correctly for the 'from' and 'to' parts.
>>>
>>> Regards
>>> -ratha.
>>>
>>> binh nguyen wrote:
>>>
>>>
>>>
>>>> Hi all,
>>>> I encounter the same error when run some BPEL processes.
>>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>> SOAPUI to test the result of BPEL after having deployed. The deployment
>>>> of the processes is OK, but when tested with soapUI, there is following
>>>> error:
>>>>
>>>> <soapenv:Envelope xmlns:soapenv="
>>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>>  <soapenv:Body>
>>>>     <soapenv:Fault>
>>>>        <faultcode>soapenv:Server</faultcode>
>>>>        <faultstring xmlns:axis2ns11="
>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>> ">axis2ns11:selectionFailure</faultstring>
>>>>        <detail/>
>>>>     </soapenv:Fault>
>>>>  </soapenv:Body>
>>>> </soapenv:Envelope>
>>>>
>>>> Any one has any idea about this kind of error?
>>>> Thank you!
>>>> Binh.
>>>>
>>>>
>>>>  ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>
>>
>>
>
>

Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi Ratha,
I am using Netbeans 6.5 to help edit these files. I will try to use Eclipse
because it is likely that many people use it in developing BPEL.
Thank you very much for your care!
Cheers,
Binh.


2008/11/12 ratha <ra...@wso2.com>

> Hi Binh,
> What is the editor you are using to write these files?
> I'm using eclipse..i hope its better to find your errors also... :-)
> Thanks.
> Ratha.
>
>
> ratha wrote:
>
>>
>> Hi Binh,
>>
>> In your schema file where have you defined the type* 'reverse'*.? It seems
>> to be error in your schema definition..(namespace refers /*"
>> http://MyWebServices/" )*/
>> /*<xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>> xmlns:tns="
>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>
>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>> */
>> The error i got in your schema file as follows,(schema.xsd is your schema
>> file)
>> /*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was detected
>> that  'tns:reverse' is in namespace ' http://MyWebServices/', but
>> components from this
>> namespace are not referenceable from schema document
>> 'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'.
>> If this is the incorrect namespace,
>> perhaps the prefix of 'tns:reverse' needs to be changed. If this is the
>> correct namespace,  then an appropriate 'import' tag should be added to
>> 'file:///C:/Program%20Files/eclipse-
>> gany/new-configuration/testBP/schema.xsd'.*/
>>
>> /*Ps: */You are using same name space to your WSDL file(
>> *StringWSService.wsdl*) and the schema file...Need to change it.
>>
>> Hope this will help you.
>> Regards,
>> Ratha.
>>
>>
>>
>> binh nguyen wrote:
>>
>>> Hi Rathar and Alex,
>>> Thank you for your response, but I still do not know more concretely
>>>  how to correct the initialization of the variables. Here I show my Bpel
>>> and related WSDL and Schema files. Please take a look and show
>>> me what I need to do to correct the error.
>>>
>>> BPEL file: testBP.bpel
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <process
>>>    name="testBP"
>>>    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>>    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>    xmlns:sxt="
>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>>    xmlns:sxed="
>>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>>    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>>
>>>    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>>        location="testBP.wsdl"
>>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    <import namespace="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>        location="StringWSServiceWrapper.wsdl"
>>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    <import namespace="http://MyWebServices/"
>>>        location="StringWSService.wsdl"
>>>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>
>>>    <partnerLinks>
>>>        <partnerLink name="StringPL"
>>>            xmlns:tns="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>            partnerLinkType="tns:StringWSLinkType"
>>> partnerRole="StringWSRole"
>>>            initializePartnerRole="yes"/>
>>>        <partnerLink name="TestPartnerLink"
>>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>>>    </partnerLinks>
>>>    <variables>
>>>        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>>            messageType="tns:reverseResponse"/>
>>>        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>>            messageType="tns:reverse"/>
>>>        <variable name="TestBPOperationOut" xmlns:tns="
>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>            messageType="tns:testBPOperationResponse"/>
>>>        <variable name="TestBPOperationIn" xmlns:tns="
>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>            messageType="tns:testBPOperationRequest"/>
>>>    </variables>
>>>    <sequence>
>>>        <receive name="Receive1" createInstance="yes"
>>>            partnerLink="TestPartnerLink"
>>>            operation="testBPOperation"
>>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>            portType="tns:testBPPortType"
>>>            variable="TestBPOperationIn"/>
>>>        <assign name="Assign1">
>>>            <copy>
>>>                <from variable="TestBPOperationIn" part="partIn"/>
>>>                <to>$ReverseIn.parameters/inputString</to>
>>>            </copy>
>>>        </assign>
>>>        <invoke name="Invoke1" partnerLink="StringPL"
>>>            operation="reverse" xmlns:tns="http://MyWebServices/"
>>>            portType="tns:StringWS"
>>>            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>>        <assign name="Assign2">
>>>            <copy>
>>>                <from>$ReverseOut.parameters/return</from>
>>>                <to variable="TestBPOperationOut" part="partOut"/>
>>>            </copy>
>>>        </assign>
>>>        <reply name="Reply1" partnerLink="TestPartnerLink"
>>>            operation="testBPOperation"
>>>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>            portType="tns:testBPPortType"
>>>            variable="TestBPOperationOut"/>
>>>    </sequence>
>>> </process>
>>>
>>> ------------------------------
>>> WSDL File: testBP.wsdl
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <definitions name="testBP" targetNamespace="
>>> http://j2ee.netbeans.org/wsdl/testBP"
>>>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>>> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>    <types/>
>>>    <message name="testBPOperationRequest">
>>>        <part name="partIn" type="xsd:string"/>
>>>    </message>
>>>    <message name="testBPOperationResponse">
>>>        <part name="partOut" type="xsd:string"/>
>>>    </message>
>>>    <portType name="testBPPortType">
>>>        <operation name="testBPOperation">
>>>            <input name="input1" message="tns:testBPOperationRequest"/>
>>>            <output name="output1" message="tns:testBPOperationResponse"/>
>>>        </operation>
>>>    </portType>
>>>    <binding name="testBPBinding" type="tns:testBPPortType">
>>>        <soap:binding style="rpc" transport="
>>> http://schemas.xmlsoap.org/soap/http"/>
>>>        <operation name="testBPOperation">
>>>            <soap:operation/>
>>>            <input name="input1">
>>>                <soap:body use="literal" namespace="
>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>            </input>
>>>            <output name="output1">
>>>                <soap:body use="literal" namespace="
>>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>>            </output>
>>>        </operation>
>>>    </binding>
>>>    <service name="testBPService">
>>>        <port name="testBPPort" binding="tns:testBPBinding">
>>>            <soap:address location="
>>> http://localhost:8084/ode/processes/testBP"/>
>>>        </port>
>>>    </service>
>>>    <plnk:partnerLinkType name="testBPLT">
>>>
>>>        <plnk:role name="testBPPortTypeRole"
>>> portType="tns:testBPPortType"/>
>>>    </plnk:partnerLinkType>
>>> </definitions>
>>>
>>> ------------------------------
>>> WSDL file: StringWSService.wsdl
>>>
>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
>>> is
>>> JAX-WS RI 2.1.4-b01-. -->
>>> <definitions targetNamespace="http://MyWebServices/"
>>> name="StringWSService"
>>> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="
>>> http://MyWebServices/"
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>>> http://schemas.xmlsoap.org/wsdl/soap/">
>>>  <types>
>>>    <xsd:schema>
>>>      <xsd:import namespace="http://MyWebServices/"
>>> schemaLocation="StringWSService_schema1.xsd"/>
>>>    </xsd:schema>
>>>  </types>
>>>  <message name="testString">
>>>    <part name="parameters" element="tns:testString"/>
>>>  </message>
>>>  <message name="testStringResponse">
>>>    <part name="parameters" element="tns:testStringResponse"/>
>>>  </message>
>>>  <message name="reverse">
>>>    <part name="parameters" element="tns:reverse"/>
>>>  </message>
>>>  <message name="reverseResponse">
>>>    <part name="parameters" element="tns:reverseResponse"/>
>>>  </message>
>>>  <portType name="StringWS">
>>>    <operation name="testString">
>>>      <input message="tns:testString"/>
>>>      <output message="tns:testStringResponse"/>
>>>    </operation>
>>>    <operation name="reverse">
>>>      <input message="tns:reverse"/>
>>>      <output message="tns:reverseResponse"/>
>>>    </operation>
>>>  </portType>
>>>  <binding name="StringWSPortBinding" type="tns:StringWS">
>>>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>>> style="document"/>
>>>    <operation name="testString">
>>>      <soap:operation soapAction=""/>
>>>      <input>
>>>        <soap:body use="literal"/>
>>>      </input>
>>>      <output>
>>>        <soap:body use="literal"/>
>>>      </output>
>>>    </operation>
>>>    <operation name="reverse">
>>>      <soap:operation soapAction=""/>
>>>      <input>
>>>        <soap:body use="literal"/>
>>>      </input>
>>>      <output>
>>>        <soap:body use="literal"/>
>>>      </output>
>>>    </operation>
>>>  </binding>
>>>  <service name="StringWSService">
>>>    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>>      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>>    </port>
>>>  </service>
>>> </definitions>
>>>
>>> ------------------------------
>>> WSDL file: StringWSServiceWrapper.wsdl
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <definitions
>>>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>> name="StringWSServiceWrapper" targetNamespace="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
>>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
>>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>>> http://MyWebServices/">
>>>    <import location="StringWSService.wsdl" namespace="
>>> http://MyWebServices/
>>> "/>
>>>    <plnk:partnerLinkType name="StringWSLinkType">
>>>        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>>    </plnk:partnerLinkType>
>>> </definitions>
>>>
>>> ------------------------------
>>> Schema WSDL file:
>>>
>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>> xmlns:tns="
>>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>
>>>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>>
>>>  <xs:element name="reverseResponse" nillable="true"
>>> type="tns:reverseResponse"/>
>>>
>>>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>>>
>>>  <xs:element name="testStringResponse" nillable="true"
>>> type="tns:testStringResponse"/>
>>>
>>>  <xs:complexType name="testString">
>>>    <xs:sequence/>
>>>  </xs:complexType>
>>>
>>>  <xs:complexType name="testStringResponse">
>>>    <xs:sequence>
>>>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>    </xs:sequence>
>>>  </xs:complexType>
>>>
>>>  <xs:complexType name="reverse">
>>>    <xs:sequence>
>>>      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>>    </xs:sequence>
>>>  </xs:complexType>
>>>
>>>  <xs:complexType name="reverseResponse">
>>>    <xs:sequence>
>>>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>    </xs:sequence>
>>>  </xs:complexType>
>>> </xs:schema>
>>>
>>> ------------------------------
>>>
>>> Thank you very much!
>>> Binh.
>>>
>>>
>>>
>>> 2008/11/11 ratha <ra...@wso2.com>
>>>
>>>
>>>
>>>> Hi Binh,
>>>>
>>>> I also faced such issue with SOAPUI. Check your assign activity whether
>>>> you
>>>> assigned values correctly for the 'from' and 'to' parts.
>>>>
>>>> Regards
>>>> -ratha.
>>>>
>>>> binh nguyen wrote:
>>>>
>>>>
>>>>
>>>>> Hi all,
>>>>> I encounter the same error when run some BPEL processes.
>>>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>>> SOAPUI to test the result of BPEL after having deployed. The deployment
>>>>> of the processes is OK, but when tested with soapUI, there is following
>>>>> error:
>>>>>
>>>>> <soapenv:Envelope xmlns:soapenv="
>>>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>>>  <soapenv:Body>
>>>>>     <soapenv:Fault>
>>>>>        <faultcode>soapenv:Server</faultcode>
>>>>>        <faultstring xmlns:axis2ns11="
>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>>> ">axis2ns11:selectionFailure</faultstring>
>>>>>        <detail/>
>>>>>     </soapenv:Fault>
>>>>>  </soapenv:Body>
>>>>> </soapenv:Envelope>
>>>>>
>>>>> Any one has any idea about this kind of error?
>>>>> Thank you!
>>>>> Binh.
>>>>>
>>>>>  ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>>
>>>
>>>
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>> 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>
>>
>>
>
>

Re: An error when run BPEL

Posted by ratha <ra...@wso2.com>.
Hi Binh,
What is the editor you are using to write these files?
I'm using eclipse..i hope its better to find your errors also... :-)
Thanks.
Ratha.

ratha wrote:
>
> Hi Binh,
>
> In your schema file where have you defined the type* 'reverse'*.? It 
> seems to be error in your schema definition..(namespace refers 
> /*"http://MyWebServices/" )*/
> /*<xs:schema version="1.0" targetNamespace="http://MyWebServices/" 
> xmlns:tns="
> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
> */
> The error i got in your schema file as follows,(schema.xsd is your 
> schema file)
> /*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was 
> detected that  'tns:reverse' is in namespace ' http://MyWebServices/', 
> but components from this
> namespace are not referenceable from schema document 
> 'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'. 
> If this is the incorrect namespace,
> perhaps the prefix of 'tns:reverse' needs to be changed. If this is 
> the correct namespace,  then an appropriate 'import' tag should be 
> added to 'file:///C:/Program%20Files/eclipse-
> gany/new-configuration/testBP/schema.xsd'.*/
>
> /*Ps: */You are using same name space to your WSDL file( 
> *StringWSService.wsdl*) and the schema file...Need to change it.
>
> Hope this will help you.
> Regards,
> Ratha.
>
>
>
> binh nguyen wrote:
>> Hi Rathar and Alex,
>> Thank you for your response, but I still do not know more concretely
>>  how to correct the initialization of the variables. Here I show my Bpel
>> and related WSDL and Schema files. Please take a look and show
>> me what I need to do to correct the error.
>>
>> BPEL file: testBP.bpel
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <process
>>     name="testBP"
>>     
>> targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>     xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>     xmlns:sxt="
>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>     xmlns:sxed="
>> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>     xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>
>>     <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>         location="testBP.wsdl"
>>         importType="http://schemas.xmlsoap.org/wsdl/"/>
>>     <import namespace="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>         location="StringWSServiceWrapper.wsdl"
>>         importType="http://schemas.xmlsoap.org/wsdl/"/>
>>     <import namespace="http://MyWebServices/"
>>         location="StringWSService.wsdl"
>>         importType="http://schemas.xmlsoap.org/wsdl/"/>
>>
>>     <partnerLinks>
>>         <partnerLink name="StringPL"
>>             xmlns:tns="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>             partnerLinkType="tns:StringWSLinkType"
>> partnerRole="StringWSRole"
>>             initializePartnerRole="yes"/>
>>         <partnerLink name="TestPartnerLink"
>>             xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>             partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>>     </partnerLinks>
>>     <variables>
>>         <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>             messageType="tns:reverseResponse"/>
>>         <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>             messageType="tns:reverse"/>
>>         <variable name="TestBPOperationOut" xmlns:tns="
>> http://j2ee.netbeans.org/wsdl/testBP"
>>             messageType="tns:testBPOperationResponse"/>
>>         <variable name="TestBPOperationIn" xmlns:tns="
>> http://j2ee.netbeans.org/wsdl/testBP"
>>             messageType="tns:testBPOperationRequest"/>
>>     </variables>
>>     <sequence>
>>         <receive name="Receive1" createInstance="yes"
>>             partnerLink="TestPartnerLink"
>>             operation="testBPOperation"
>>             xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>             portType="tns:testBPPortType"
>>             variable="TestBPOperationIn"/>
>>         <assign name="Assign1">
>>             <copy>
>>                 <from variable="TestBPOperationIn" part="partIn"/>
>>                 <to>$ReverseIn.parameters/inputString</to>
>>             </copy>
>>         </assign>
>>         <invoke name="Invoke1" partnerLink="StringPL"
>>             operation="reverse" xmlns:tns="http://MyWebServices/"
>>             portType="tns:StringWS"
>>             inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>         <assign name="Assign2">
>>             <copy>
>>                 <from>$ReverseOut.parameters/return</from>
>>                 <to variable="TestBPOperationOut" part="partOut"/>
>>             </copy>
>>         </assign>
>>         <reply name="Reply1" partnerLink="TestPartnerLink"
>>             operation="testBPOperation"
>>             xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>             portType="tns:testBPPortType"
>>             variable="TestBPOperationOut"/>
>>     </sequence>
>> </process>
>>
>> ------------------------------
>> WSDL File: testBP.wsdl
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <definitions name="testBP" targetNamespace="
>> http://j2ee.netbeans.org/wsdl/testBP"
>>     xmlns="http://schemas.xmlsoap.org/wsdl/"
>>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>> http://schemas.xmlsoap.org/wsdl/soap/">
>>     <types/>
>>     <message name="testBPOperationRequest">
>>         <part name="partIn" type="xsd:string"/>
>>     </message>
>>     <message name="testBPOperationResponse">
>>         <part name="partOut" type="xsd:string"/>
>>     </message>
>>     <portType name="testBPPortType">
>>         <operation name="testBPOperation">
>>             <input name="input1" message="tns:testBPOperationRequest"/>
>>             <output name="output1" 
>> message="tns:testBPOperationResponse"/>
>>         </operation>
>>     </portType>
>>     <binding name="testBPBinding" type="tns:testBPPortType">
>>         <soap:binding style="rpc" transport="
>> http://schemas.xmlsoap.org/soap/http"/>
>>         <operation name="testBPOperation">
>>             <soap:operation/>
>>             <input name="input1">
>>                 <soap:body use="literal" namespace="
>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>             </input>
>>             <output name="output1">
>>                 <soap:body use="literal" namespace="
>> http://j2ee.netbeans.org/wsdl/testBP"/>
>>             </output>
>>         </operation>
>>     </binding>
>>     <service name="testBPService">
>>         <port name="testBPPort" binding="tns:testBPBinding">
>>             <soap:address location="
>> http://localhost:8084/ode/processes/testBP"/>
>>         </port>
>>     </service>
>>     <plnk:partnerLinkType name="testBPLT">
>>
>>         <plnk:role name="testBPPortTypeRole" 
>> portType="tns:testBPPortType"/>
>>     </plnk:partnerLinkType>
>> </definitions>
>>
>> ------------------------------
>> WSDL file: StringWSService.wsdl
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's 
>> version is
>> JAX-WS RI 2.1.4-b01-. -->
>> <definitions targetNamespace="http://MyWebServices/" 
>> name="StringWSService"
>> xmlns="http://schemas.xmlsoap.org/wsdl/" 
>> xmlns:tns="http://MyWebServices/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>> http://schemas.xmlsoap.org/wsdl/soap/">
>>   <types>
>>     <xsd:schema>
>>       <xsd:import namespace="http://MyWebServices/"
>> schemaLocation="StringWSService_schema1.xsd"/>
>>     </xsd:schema>
>>   </types>
>>   <message name="testString">
>>     <part name="parameters" element="tns:testString"/>
>>   </message>
>>   <message name="testStringResponse">
>>     <part name="parameters" element="tns:testStringResponse"/>
>>   </message>
>>   <message name="reverse">
>>     <part name="parameters" element="tns:reverse"/>
>>   </message>
>>   <message name="reverseResponse">
>>     <part name="parameters" element="tns:reverseResponse"/>
>>   </message>
>>   <portType name="StringWS">
>>     <operation name="testString">
>>       <input message="tns:testString"/>
>>       <output message="tns:testStringResponse"/>
>>     </operation>
>>     <operation name="reverse">
>>       <input message="tns:reverse"/>
>>       <output message="tns:reverseResponse"/>
>>     </operation>
>>   </portType>
>>   <binding name="StringWSPortBinding" type="tns:StringWS">
>>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>> style="document"/>
>>     <operation name="testString">
>>       <soap:operation soapAction=""/>
>>       <input>
>>         <soap:body use="literal"/>
>>       </input>
>>       <output>
>>         <soap:body use="literal"/>
>>       </output>
>>     </operation>
>>     <operation name="reverse">
>>       <soap:operation soapAction=""/>
>>       <input>
>>         <soap:body use="literal"/>
>>       </input>
>>       <output>
>>         <soap:body use="literal"/>
>>       </output>
>>     </operation>
>>   </binding>
>>   <service name="StringWSService">
>>     <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>       <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>     </port>
>>   </service>
>> </definitions>
>>
>> ------------------------------
>> WSDL file: StringWSServiceWrapper.wsdl
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <definitions
>>     xmlns="http://schemas.xmlsoap.org/wsdl/"
>>     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> name="StringWSServiceWrapper" targetNamespace="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
>> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
>> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>> http://MyWebServices/">
>>     <import location="StringWSService.wsdl" 
>> namespace="http://MyWebServices/
>> "/>
>>     <plnk:partnerLinkType name="StringWSLinkType">
>>         <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>     </plnk:partnerLinkType>
>> </definitions>
>>
>> ------------------------------
>> Schema WSDL file:
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <xs:schema version="1.0" targetNamespace="http://MyWebServices/" 
>> xmlns:tns="
>> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>
>>   <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>
>>   <xs:element name="reverseResponse" nillable="true"
>> type="tns:reverseResponse"/>
>>
>>   <xs:element name="testString" nillable="true" type="tns:testString"/>
>>
>>   <xs:element name="testStringResponse" nillable="true"
>> type="tns:testStringResponse"/>
>>
>>   <xs:complexType name="testString">
>>     <xs:sequence/>
>>   </xs:complexType>
>>
>>   <xs:complexType name="testStringResponse">
>>     <xs:sequence>
>>       <xs:element name="return" type="xs:string" minOccurs="0"/>
>>     </xs:sequence>
>>   </xs:complexType>
>>
>>   <xs:complexType name="reverse">
>>     <xs:sequence>
>>       <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>     </xs:sequence>
>>   </xs:complexType>
>>
>>   <xs:complexType name="reverseResponse">
>>     <xs:sequence>
>>       <xs:element name="return" type="xs:string" minOccurs="0"/>
>>     </xs:sequence>
>>   </xs:complexType>
>> </xs:schema>
>>
>> ------------------------------
>>
>> Thank you very much!
>> Binh.
>>
>>
>>
>> 2008/11/11 ratha <ra...@wso2.com>
>>
>>  
>>> Hi Binh,
>>>
>>> I also faced such issue with SOAPUI. Check your assign activity 
>>> whether you
>>> assigned values correctly for the 'from' and 'to' parts.
>>>
>>> Regards
>>> -ratha.
>>>
>>> binh nguyen wrote:
>>>
>>>    
>>>> Hi all,
>>>> I encounter the same error when run some BPEL processes.
>>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>> SOAPUI to test the result of BPEL after having deployed. The 
>>>> deployment
>>>> of the processes is OK, but when tested with soapUI, there is 
>>>> following
>>>> error:
>>>>
>>>> <soapenv:Envelope xmlns:soapenv="
>>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>>   <soapenv:Body>
>>>>      <soapenv:Fault>
>>>>         <faultcode>soapenv:Server</faultcode>
>>>>         <faultstring xmlns:axis2ns11="
>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>> ">axis2ns11:selectionFailure</faultstring>
>>>>         <detail/>
>>>>      </soapenv:Fault>
>>>>   </soapenv:Body>
>>>> </soapenv:Envelope>
>>>>
>>>> Any one has any idea about this kind of error?
>>>> Thank you!
>>>> Binh.
>>>>
>>>>  ------------------------------------------------------------------------ 
>>>>
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>>
>>>>
>>>>
>>>>       
>>>     
>>
>>   
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus 
>> Database: 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>>
>>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>
>   


Re: An error when run BPEL

Posted by ratha <ra...@wso2.com>.
Hi Binh,

In your schema file where have you defined the type* 'reverse'*.? It 
seems to be error in your schema definition..(namespace refers 
/*"http://MyWebServices/" )*/
/*<xs:schema version="1.0" targetNamespace="http://MyWebServices/" 
xmlns:tns="
http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
*/
The error i got in your schema file as follows,(schema.xsd is your 
schema file)
/*rc-resolve.4.2: Error resolving component 'tns:reverse'. It was 
detected that  'tns:reverse' is in namespace ' http://MyWebServices/', 
but components from this
 namespace are not referenceable from schema document 
'file:///C:/Program%20Files/eclipse-gany/new-configuration/testBP/schema.xsd'. 
If this is the incorrect namespace,
 perhaps the prefix of 'tns:reverse' needs to be changed. If this is the 
correct namespace,  then an appropriate 'import' tag should be added to 
'file:///C:/Program%20Files/eclipse-
 gany/new-configuration/testBP/schema.xsd'.*/

/*Ps: */You are using same name space to your WSDL file( 
*StringWSService.wsdl*) and the schema file...Need to change it.

Hope this will help you.
Regards,
Ratha.



binh nguyen wrote:
> Hi Rathar and Alex,
> Thank you for your response, but I still do not know more concretely
>  how to correct the initialization of the variables. Here I show my Bpel
> and related WSDL and Schema files. Please take a look and show
> me what I need to do to correct the error.
>
> BPEL file: testBP.bpel
>
> <?xml version="1.0" encoding="UTF-8"?>
> <process
>     name="testBP"
>     targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>     xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     xmlns:sxt="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>     xmlns:sxed="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>     xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>
>     <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>         location="testBP.wsdl"
>         importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <import namespace="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>         location="StringWSServiceWrapper.wsdl"
>         importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <import namespace="http://MyWebServices/"
>         location="StringWSService.wsdl"
>         importType="http://schemas.xmlsoap.org/wsdl/"/>
>
>     <partnerLinks>
>         <partnerLink name="StringPL"
>             xmlns:tns="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>             partnerLinkType="tns:StringWSLinkType"
> partnerRole="StringWSRole"
>             initializePartnerRole="yes"/>
>         <partnerLink name="TestPartnerLink"
>             xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>             partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>     </partnerLinks>
>     <variables>
>         <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>             messageType="tns:reverseResponse"/>
>         <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>             messageType="tns:reverse"/>
>         <variable name="TestBPOperationOut" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP"
>             messageType="tns:testBPOperationResponse"/>
>         <variable name="TestBPOperationIn" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP"
>             messageType="tns:testBPOperationRequest"/>
>     </variables>
>     <sequence>
>         <receive name="Receive1" createInstance="yes"
>             partnerLink="TestPartnerLink"
>             operation="testBPOperation"
>             xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>             portType="tns:testBPPortType"
>             variable="TestBPOperationIn"/>
>         <assign name="Assign1">
>             <copy>
>                 <from variable="TestBPOperationIn" part="partIn"/>
>                 <to>$ReverseIn.parameters/inputString</to>
>             </copy>
>         </assign>
>         <invoke name="Invoke1" partnerLink="StringPL"
>             operation="reverse" xmlns:tns="http://MyWebServices/"
>             portType="tns:StringWS"
>             inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>         <assign name="Assign2">
>             <copy>
>                 <from>$ReverseOut.parameters/return</from>
>                 <to variable="TestBPOperationOut" part="partOut"/>
>             </copy>
>         </assign>
>         <reply name="Reply1" partnerLink="TestPartnerLink"
>             operation="testBPOperation"
>             xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>             portType="tns:testBPPortType"
>             variable="TestBPOperationOut"/>
>     </sequence>
> </process>
>
> ------------------------------
> WSDL File: testBP.wsdl
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="testBP" targetNamespace="
> http://j2ee.netbeans.org/wsdl/testBP"
>     xmlns="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/">
>     <types/>
>     <message name="testBPOperationRequest">
>         <part name="partIn" type="xsd:string"/>
>     </message>
>     <message name="testBPOperationResponse">
>         <part name="partOut" type="xsd:string"/>
>     </message>
>     <portType name="testBPPortType">
>         <operation name="testBPOperation">
>             <input name="input1" message="tns:testBPOperationRequest"/>
>             <output name="output1" message="tns:testBPOperationResponse"/>
>         </operation>
>     </portType>
>     <binding name="testBPBinding" type="tns:testBPPortType">
>         <soap:binding style="rpc" transport="
> http://schemas.xmlsoap.org/soap/http"/>
>         <operation name="testBPOperation">
>             <soap:operation/>
>             <input name="input1">
>                 <soap:body use="literal" namespace="
> http://j2ee.netbeans.org/wsdl/testBP"/>
>             </input>
>             <output name="output1">
>                 <soap:body use="literal" namespace="
> http://j2ee.netbeans.org/wsdl/testBP"/>
>             </output>
>         </operation>
>     </binding>
>     <service name="testBPService">
>         <port name="testBPPort" binding="tns:testBPBinding">
>             <soap:address location="
> http://localhost:8084/ode/processes/testBP"/>
>         </port>
>     </service>
>     <plnk:partnerLinkType name="testBPLT">
>
>         <plnk:role name="testBPPortTypeRole" portType="tns:testBPPortType"/>
>     </plnk:partnerLinkType>
> </definitions>
>
> ------------------------------
> WSDL file: StringWSService.wsdl
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is
> JAX-WS RI 2.1.4-b01-. -->
> <definitions targetNamespace="http://MyWebServices/" name="StringWSService"
> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://MyWebServices/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/">
>   <types>
>     <xsd:schema>
>       <xsd:import namespace="http://MyWebServices/"
> schemaLocation="StringWSService_schema1.xsd"/>
>     </xsd:schema>
>   </types>
>   <message name="testString">
>     <part name="parameters" element="tns:testString"/>
>   </message>
>   <message name="testStringResponse">
>     <part name="parameters" element="tns:testStringResponse"/>
>   </message>
>   <message name="reverse">
>     <part name="parameters" element="tns:reverse"/>
>   </message>
>   <message name="reverseResponse">
>     <part name="parameters" element="tns:reverseResponse"/>
>   </message>
>   <portType name="StringWS">
>     <operation name="testString">
>       <input message="tns:testString"/>
>       <output message="tns:testStringResponse"/>
>     </operation>
>     <operation name="reverse">
>       <input message="tns:reverse"/>
>       <output message="tns:reverseResponse"/>
>     </operation>
>   </portType>
>   <binding name="StringWSPortBinding" type="tns:StringWS">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/>
>     <operation name="testString">
>       <soap:operation soapAction=""/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>     <operation name="reverse">
>       <soap:operation soapAction=""/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="StringWSService">
>     <port name="StringWSPort" binding="tns:StringWSPortBinding">
>       <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>     </port>
>   </service>
> </definitions>
>
> ------------------------------
> WSDL file: StringWSServiceWrapper.wsdl
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <definitions
>     xmlns="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> name="StringWSServiceWrapper" targetNamespace="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
> http://MyWebServices/">
>     <import location="StringWSService.wsdl" namespace="http://MyWebServices/
> "/>
>     <plnk:partnerLinkType name="StringWSLinkType">
>         <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>     </plnk:partnerLinkType>
> </definitions>
>
> ------------------------------
> Schema WSDL file:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <xs:schema version="1.0" targetNamespace="http://MyWebServices/" xmlns:tns="
> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>   <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>
>   <xs:element name="reverseResponse" nillable="true"
> type="tns:reverseResponse"/>
>
>   <xs:element name="testString" nillable="true" type="tns:testString"/>
>
>   <xs:element name="testStringResponse" nillable="true"
> type="tns:testStringResponse"/>
>
>   <xs:complexType name="testString">
>     <xs:sequence/>
>   </xs:complexType>
>
>   <xs:complexType name="testStringResponse">
>     <xs:sequence>
>       <xs:element name="return" type="xs:string" minOccurs="0"/>
>     </xs:sequence>
>   </xs:complexType>
>
>   <xs:complexType name="reverse">
>     <xs:sequence>
>       <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>     </xs:sequence>
>   </xs:complexType>
>
>   <xs:complexType name="reverseResponse">
>     <xs:sequence>
>       <xs:element name="return" type="xs:string" minOccurs="0"/>
>     </xs:sequence>
>   </xs:complexType>
> </xs:schema>
>
> ------------------------------
>
> Thank you very much!
> Binh.
>
>
>
> 2008/11/11 ratha <ra...@wso2.com>
>
>   
>> Hi Binh,
>>
>> I also faced such issue with SOAPUI. Check your assign activity whether you
>> assigned values correctly for the 'from' and 'to' parts.
>>
>> Regards
>> -ratha.
>>
>> binh nguyen wrote:
>>
>>     
>>> Hi all,
>>> I encounter the same error when run some BPEL processes.
>>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>> SOAPUI to test the result of BPEL after having deployed. The deployment
>>> of the processes is OK, but when tested with soapUI, there is following
>>> error:
>>>
>>> <soapenv:Envelope xmlns:soapenv="
>>> http://schemas.xmlsoap.org/soap/envelope/">
>>>   <soapenv:Body>
>>>      <soapenv:Fault>
>>>         <faultcode>soapenv:Server</faultcode>
>>>         <faultstring xmlns:axis2ns11="
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>> ">axis2ns11:selectionFailure</faultstring>
>>>         <detail/>
>>>      </soapenv:Fault>
>>>   </soapenv:Body>
>>> </soapenv:Envelope>
>>>
>>> Any one has any idea about this kind of error?
>>> Thank you!
>>> Binh.
>>>
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>
>>>
>>>
>>>       
>>     
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.0/1780 - Release Date: 11/10/2008 8:58 PM
>
>   


Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi all,
I have changed the codes to correct the error, but now another error occurs.
I attach here all of the file. In the testBP.bpel, there are 2 Invokes, that
the first
one invokes the operation testString() (having only Output) runs well,
meanwhile
the second one invokes the operation reverse() (having both input and
output) causes
the error. The debug of the error is in the file debug-err9h51.txt.

Could any one help me and/or suggest any idea?
Thank you!
Binh.


2008/11/14 binh nguyen <li...@gmail.com>

> Hi Ratha,
> I have already attached all files in the previous mail.
> Did not you see them? Maybe there is an error in tranfer, so I
> send again for you.
> Thanks!
> Binh.
>
>
> 2008/11/14 ratha <ra...@wso2.com>
>
> Hi Binh,
>> What was the error?
>> and didn't send the BPEL file and your schema file...
>>
>> Regards,
>> -Ratha.
>>
>> binh nguyen wrote:
>>
>>> Hi Alexis and Ratha,
>>> Thank you both of you. I have corrected the code to overcome the
>>> SelectionFailure error, but now I have another error when Invoke. I attach
>>> here all the codes and debug result. The error seems to lie in the file
>>> testBP.bpel with input-output Operation reverse() (there is a comment about
>>> the error. I also leave a run-well Invoke of output-only Operation
>>> testString() to make you easier to compare and check the error).
>>> Plese take a look and check for me how to fix it?
>>> Thank you!
>>> Cheers,
>>> Binh.
>>>
>>>
>>>
>>> 2008/11/14 Alexis Midon <midon@intalio.com <ma...@intalio.com>>
>>>
>>>    Hi Binh,
>>>
>>>    could you set the log category
>>>    log4j.category.org.apache.ode.bpel.runtime.ASSIGN to  DEBUG,
>>>    reproduce and
>>>    then give us all the relevant logs. Knowing which assignment fails
>>>    against
>>>    which message would help a lot.
>>>
>>>    And because I just spent/wasted hours with a selection failure,
>>>    let me make
>>>    a guess:
>>>    your xml schema does set elementFormDefault to 'qualified' and
>>>    thus uses
>>>    'unqualified'. Your assigments are in line with that but what
>>>    about your
>>>    messages?
>>>    **
>>>    Alexis
>>>
>>>
>>>    On Tue, Nov 11, 2008 at 9:34 PM, binh nguyen
>>>    <linhtinh0274@gmail.com <ma...@gmail.com>> wrote:
>>>
>>>    > Hi Rathar and Alex,
>>>    > Thank you for your response, but I still do not know more concretely
>>>    >  how to correct the initialization of the variables. Here I show
>>>    my Bpel
>>>    > and related WSDL and Schema files. Please take a look and show
>>>    > me what I need to do to correct the error.
>>>    >
>>>    > BPEL file: testBP.bpel
>>>    >
>>>    > <?xml version="1.0" encoding="UTF-8"?>
>>>    > <process
>>>    >    name="testBP"
>>>    >       targetNamespace="
>>> http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>>    >    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>>    >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>    >    xmlns:sxt="
>>>    > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace
>>> "
>>>    >    xmlns:sxed="
>>>    >
>>>    http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>>    >    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>>    >
>>>    >    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>>    >        location="testBP.wsdl"
>>>    >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    >    <import namespace="
>>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>    >        location="StringWSServiceWrapper.wsdl"
>>>    >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    >    <import namespace="http://MyWebServices/"
>>>    >        location="StringWSService.wsdl"
>>>    >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>    >
>>>    >    <partnerLinks>
>>>    >        <partnerLink name="StringPL"
>>>    >            xmlns:tns="
>>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>    >            partnerLinkType="tns:StringWSLinkType"
>>>    > partnerRole="StringWSRole"
>>>    >            initializePartnerRole="yes"/>
>>>    >        <partnerLink name="TestPartnerLink"
>>>    >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>    >            partnerLinkType="tns:testBPLT"
>>>    myRole="testBPPortTypeRole"/>
>>>    >    </partnerLinks>
>>>    >    <variables>
>>>    >        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/
>>> "
>>>    >            messageType="tns:reverseResponse"/>
>>>    >        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>>    >            messageType="tns:reverse"/>
>>>    >        <variable name="TestBPOperationOut" xmlns:tns="
>>>    > http://j2ee.netbeans.org/wsdl/testBP"
>>>    >            messageType="tns:testBPOperationResponse"/>
>>>    >        <variable name="TestBPOperationIn" xmlns:tns="
>>>    > http://j2ee.netbeans.org/wsdl/testBP"
>>>    >            messageType="tns:testBPOperationRequest"/>
>>>    >    </variables>
>>>    >    <sequence>
>>>    >        <receive name="Receive1" createInstance="yes"
>>>    >            partnerLink="TestPartnerLink"
>>>    >            operation="testBPOperation"
>>>    >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>    >            portType="tns:testBPPortType"
>>>    >            variable="TestBPOperationIn"/>
>>>    >        <assign name="Assign1">
>>>    >            <copy>
>>>    >                <from variable="TestBPOperationIn" part="partIn"/>
>>>    >                <to>$ReverseIn.parameters/inputString</to>
>>>    >            </copy>
>>>    >        </assign>
>>>    >        <invoke name="Invoke1" partnerLink="StringPL"
>>>    >            operation="reverse" xmlns:tns="http://MyWebServices/"
>>>    >            portType="tns:StringWS"
>>>    >            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>>    >        <assign name="Assign2">
>>>    >            <copy>
>>>    >                <from>$ReverseOut.parameters/return</from>
>>>    >                <to variable="TestBPOperationOut" part="partOut"/>
>>>    >            </copy>
>>>    >        </assign>
>>>    >        <reply name="Reply1" partnerLink="TestPartnerLink"
>>>    >            operation="testBPOperation"
>>>    >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>>    >            portType="tns:testBPPortType"
>>>    >            variable="TestBPOperationOut"/>
>>>    >    </sequence>
>>>    > </process>
>>>    >
>>>    > ------------------------------
>>>    > WSDL File: testBP.wsdl
>>>    >
>>>    > <?xml version="1.0" encoding="UTF-8"?>
>>>    > <definitions name="testBP" targetNamespace="
>>>    > http://j2ee.netbeans.org/wsdl/testBP"
>>>    >    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>    >    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>>>    > http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>>>    > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>>>    > http://schemas.xmlsoap.org/wsdl/soap/">
>>>    >    <types/>
>>>    >    <message name="testBPOperationRequest">
>>>    >        <part name="partIn" type="xsd:string"/>
>>>    >    </message>
>>>    >    <message name="testBPOperationResponse">
>>>    >        <part name="partOut" type="xsd:string"/>
>>>    >    </message>
>>>    >    <portType name="testBPPortType">
>>>    >        <operation name="testBPOperation">
>>>    >            <input name="input1"
>>>    message="tns:testBPOperationRequest"/>
>>>    >            <output name="output1"
>>>    message="tns:testBPOperationResponse"/>
>>>    >        </operation>
>>>    >    </portType>
>>>    >    <binding name="testBPBinding" type="tns:testBPPortType">
>>>    >        <soap:binding style="rpc" transport="
>>>    > http://schemas.xmlsoap.org/soap/http"/>
>>>    >        <operation name="testBPOperation">
>>>    >            <soap:operation/>
>>>    >            <input name="input1">
>>>    >                <soap:body use="literal" namespace="
>>>    > http://j2ee.netbeans.org/wsdl/testBP"/>
>>>    >            </input>
>>>    >            <output name="output1">
>>>    >                <soap:body use="literal" namespace="
>>>    > http://j2ee.netbeans.org/wsdl/testBP"/>
>>>    >            </output>
>>>    >        </operation>
>>>    >    </binding>
>>>    >    <service name="testBPService">
>>>    >        <port name="testBPPort" binding="tns:testBPBinding">
>>>    >            <soap:address location="
>>>    > http://localhost:8084/ode/processes/testBP"/>
>>>    >        </port>
>>>    >    </service>
>>>    >    <plnk:partnerLinkType name="testBPLT">
>>>    >
>>>    >        <plnk:role name="testBPPortTypeRole"
>>>    portType="tns:testBPPortType"/>
>>>    >    </plnk:partnerLinkType>
>>>    > </definitions>
>>>    >
>>>    > ------------------------------
>>>    > WSDL file: StringWSService.wsdl
>>>    >
>>>    > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>    > <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's
>>>    version is
>>>    > JAX-WS RI 2.1.4-b01-. -->
>>>    > <definitions targetNamespace="http://MyWebServices/"
>>>    > name="StringWSService"
>>>    > xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    xmlns:tns="http://MyWebServices/"
>>>    > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>>>    > http://schemas.xmlsoap.org/wsdl/soap/">
>>>    >  <types>
>>>    >    <xsd:schema>
>>>    >      <xsd:import namespace="http://MyWebServices/"
>>>    > schemaLocation="StringWSService_schema1.xsd"/>
>>>    >    </xsd:schema>
>>>    >  </types>
>>>    >  <message name="testString">
>>>    >    <part name="parameters" element="tns:testString"/>
>>>    >  </message>
>>>    >  <message name="testStringResponse">
>>>    >    <part name="parameters" element="tns:testStringResponse"/>
>>>    >  </message>
>>>    >  <message name="reverse">
>>>    >    <part name="parameters" element="tns:reverse"/>
>>>    >  </message>
>>>    >  <message name="reverseResponse">
>>>    >    <part name="parameters" element="tns:reverseResponse"/>
>>>    >  </message>
>>>    >  <portType name="StringWS">
>>>    >    <operation name="testString">
>>>    >      <input message="tns:testString"/>
>>>    >      <output message="tns:testStringResponse"/>
>>>    >    </operation>
>>>    >    <operation name="reverse">
>>>    >      <input message="tns:reverse"/>
>>>    >      <output message="tns:reverseResponse"/>
>>>    >    </operation>
>>>    >  </portType>
>>>    >  <binding name="StringWSPortBinding" type="tns:StringWS">
>>>    >    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>>>    > style="document"/>
>>>    >    <operation name="testString">
>>>    >      <soap:operation soapAction=""/>
>>>    >      <input>
>>>    >        <soap:body use="literal"/>
>>>    >      </input>
>>>    >      <output>
>>>    >        <soap:body use="literal"/>
>>>    >      </output>
>>>    >    </operation>
>>>    >    <operation name="reverse">
>>>    >      <soap:operation soapAction=""/>
>>>    >      <input>
>>>    >        <soap:body use="literal"/>
>>>    >      </input>
>>>    >      <output>
>>>    >        <soap:body use="literal"/>
>>>    >      </output>
>>>    >    </operation>
>>>    >  </binding>
>>>    >  <service name="StringWSService">
>>>    >    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>>    >      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>>    >    </port>
>>>    >  </service>
>>>    > </definitions>
>>>    >
>>>    > ------------------------------
>>>    > WSDL file: StringWSServiceWrapper.wsdl
>>>    >
>>>    > <?xml version="1.0" encoding="UTF-8"?>
>>>    >
>>>    > <definitions
>>>    >    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>>    >    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>    >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>    >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>    > name="StringWSServiceWrapper" targetNamespace="
>>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>    xmlns:tns="
>>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>>    xmlns:plnk="
>>>    > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>>>    > http://MyWebServices/">
>>>    >    <import location="StringWSService.wsdl" namespace="
>>>    > http://MyWebServices/
>>>    > "/>
>>>    >    <plnk:partnerLinkType name="StringWSLinkType">
>>>    >        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>>    >    </plnk:partnerLinkType>
>>>    > </definitions>
>>>    >
>>>    > ------------------------------
>>>    > Schema WSDL file:
>>>    >
>>>    > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>    > <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>>    > xmlns:tns="
>>>    > http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>>    >
>>>    >  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>>    >
>>>    >  <xs:element name="reverseResponse" nillable="true"
>>>    > type="tns:reverseResponse"/>
>>>    >
>>>    >  <xs:element name="testString" nillable="true"
>>>    type="tns:testString"/>
>>>    >
>>>    >  <xs:element name="testStringResponse" nillable="true"
>>>    > type="tns:testStringResponse"/>
>>>    >
>>>    >  <xs:complexType name="testString">
>>>    >    <xs:sequence/>
>>>    >  </xs:complexType>
>>>    >
>>>    >  <xs:complexType name="testStringResponse">
>>>    >    <xs:sequence>
>>>    >      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>    >    </xs:sequence>
>>>    >  </xs:complexType>
>>>    >
>>>    >  <xs:complexType name="reverse">
>>>    >    <xs:sequence>
>>>    >      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>>    >    </xs:sequence>
>>>    >  </xs:complexType>
>>>    >
>>>    >  <xs:complexType name="reverseResponse">
>>>    >    <xs:sequence>
>>>    >      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>>    >    </xs:sequence>
>>>    >  </xs:complexType>
>>>    > </xs:schema>
>>>    >
>>>    > ------------------------------
>>>    >
>>>    > Thank you very much!
>>>    > Binh.
>>>    >
>>>    >
>>>    >
>>>    > 2008/11/11 ratha <rathav@wso2.com <ma...@wso2.com>>
>>>
>>>    >
>>>    > > Hi Binh,
>>>    > >
>>>    > > I also faced such issue with SOAPUI. Check your assign
>>>    activity whether
>>>    > you
>>>    > > assigned values correctly for the 'from' and 'to' parts.
>>>    > >
>>>    > > Regards
>>>    > > -ratha.
>>>    > >
>>>    > > binh nguyen wrote:
>>>    > >
>>>    > >> Hi all,
>>>    > >> I encounter the same error when run some BPEL processes.
>>>    > >> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>>    > >> SOAPUI to test the result of BPEL after having deployed. The
>>>    deployment
>>>    > >> of the processes is OK, but when tested with soapUI, there is
>>>    following
>>>    > >> error:
>>>    > >>
>>>    > >> <soapenv:Envelope xmlns:soapenv="
>>>    > >> http://schemas.xmlsoap.org/soap/envelope/">
>>>    > >>   <soapenv:Body>
>>>    > >>      <soapenv:Fault>
>>>    > >>         <faultcode>soapenv:Server</faultcode>
>>>    > >>         <faultstring xmlns:axis2ns11="
>>>    > >> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>>    > >> ">axis2ns11:selectionFailure</faultstring>
>>>    > >>         <detail/>
>>>    > >>      </soapenv:Fault>
>>>    > >>   </soapenv:Body>
>>>    > >> </soapenv:Envelope>
>>>    > >>
>>>    > >> Any one has any idea about this kind of error?
>>>    > >> Thank you!
>>>    > >> Binh.
>>>    > >>
>>>    > >>
>>>    >
>>>
>>> ------------------------------------------------------------------------
>>>    > >>
>>>    > >>
>>>    > >> No virus found in this incoming message.
>>>    > >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus
>>>    Database:
>>>    > >> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>>    > >>
>>>    > >>
>>>    > >>
>>>    > >
>>>    > >
>>>    >
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>>> 270.9.2/1784 - Release Date: 11/12/2008 7:01 PM
>>>
>>>
>>
>

Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi Ratha,
I have already attached all files in the previous mail.
Did not you see them? Maybe there is an error in tranfer, so I
send again for you.
Thanks!
Binh.


2008/11/14 ratha <ra...@wso2.com>

> Hi Binh,
> What was the error?
> and didn't send the BPEL file and your schema file...
>
> Regards,
> -Ratha.
>
> binh nguyen wrote:
>
>> Hi Alexis and Ratha,
>> Thank you both of you. I have corrected the code to overcome the
>> SelectionFailure error, but now I have another error when Invoke. I attach
>> here all the codes and debug result. The error seems to lie in the file
>> testBP.bpel with input-output Operation reverse() (there is a comment about
>> the error. I also leave a run-well Invoke of output-only Operation
>> testString() to make you easier to compare and check the error).
>> Plese take a look and check for me how to fix it?
>> Thank you!
>> Cheers,
>> Binh.
>>
>>
>>
>> 2008/11/14 Alexis Midon <midon@intalio.com <ma...@intalio.com>>
>>
>>    Hi Binh,
>>
>>    could you set the log category
>>    log4j.category.org.apache.ode.bpel.runtime.ASSIGN to  DEBUG,
>>    reproduce and
>>    then give us all the relevant logs. Knowing which assignment fails
>>    against
>>    which message would help a lot.
>>
>>    And because I just spent/wasted hours with a selection failure,
>>    let me make
>>    a guess:
>>    your xml schema does set elementFormDefault to 'qualified' and
>>    thus uses
>>    'unqualified'. Your assigments are in line with that but what
>>    about your
>>    messages?
>>    **
>>    Alexis
>>
>>
>>    On Tue, Nov 11, 2008 at 9:34 PM, binh nguyen
>>    <linhtinh0274@gmail.com <ma...@gmail.com>> wrote:
>>
>>    > Hi Rathar and Alex,
>>    > Thank you for your response, but I still do not know more concretely
>>    >  how to correct the initialization of the variables. Here I show
>>    my Bpel
>>    > and related WSDL and Schema files. Please take a look and show
>>    > me what I need to do to correct the error.
>>    >
>>    > BPEL file: testBP.bpel
>>    >
>>    > <?xml version="1.0" encoding="UTF-8"?>
>>    > <process
>>    >    name="testBP"
>>    >       targetNamespace="
>> http://enterprise.netbeans.org/bpel/StringBP/testBP"
>>    >    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>    >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>    >    xmlns:sxt="
>>    > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>    >    xmlns:sxed="
>>    >
>>    http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>    >    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>>    >
>>    >    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>>    >        location="testBP.wsdl"
>>    >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>    >    <import namespace="
>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>    >        location="StringWSServiceWrapper.wsdl"
>>    >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>    >    <import namespace="http://MyWebServices/"
>>    >        location="StringWSService.wsdl"
>>    >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>>    >
>>    >    <partnerLinks>
>>    >        <partnerLink name="StringPL"
>>    >            xmlns:tns="
>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>    >            partnerLinkType="tns:StringWSLinkType"
>>    > partnerRole="StringWSRole"
>>    >            initializePartnerRole="yes"/>
>>    >        <partnerLink name="TestPartnerLink"
>>    >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>    >            partnerLinkType="tns:testBPLT"
>>    myRole="testBPPortTypeRole"/>
>>    >    </partnerLinks>
>>    >    <variables>
>>    >        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>>    >            messageType="tns:reverseResponse"/>
>>    >        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>>    >            messageType="tns:reverse"/>
>>    >        <variable name="TestBPOperationOut" xmlns:tns="
>>    > http://j2ee.netbeans.org/wsdl/testBP"
>>    >            messageType="tns:testBPOperationResponse"/>
>>    >        <variable name="TestBPOperationIn" xmlns:tns="
>>    > http://j2ee.netbeans.org/wsdl/testBP"
>>    >            messageType="tns:testBPOperationRequest"/>
>>    >    </variables>
>>    >    <sequence>
>>    >        <receive name="Receive1" createInstance="yes"
>>    >            partnerLink="TestPartnerLink"
>>    >            operation="testBPOperation"
>>    >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>    >            portType="tns:testBPPortType"
>>    >            variable="TestBPOperationIn"/>
>>    >        <assign name="Assign1">
>>    >            <copy>
>>    >                <from variable="TestBPOperationIn" part="partIn"/>
>>    >                <to>$ReverseIn.parameters/inputString</to>
>>    >            </copy>
>>    >        </assign>
>>    >        <invoke name="Invoke1" partnerLink="StringPL"
>>    >            operation="reverse" xmlns:tns="http://MyWebServices/"
>>    >            portType="tns:StringWS"
>>    >            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>>    >        <assign name="Assign2">
>>    >            <copy>
>>    >                <from>$ReverseOut.parameters/return</from>
>>    >                <to variable="TestBPOperationOut" part="partOut"/>
>>    >            </copy>
>>    >        </assign>
>>    >        <reply name="Reply1" partnerLink="TestPartnerLink"
>>    >            operation="testBPOperation"
>>    >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>>    >            portType="tns:testBPPortType"
>>    >            variable="TestBPOperationOut"/>
>>    >    </sequence>
>>    > </process>
>>    >
>>    > ------------------------------
>>    > WSDL File: testBP.wsdl
>>    >
>>    > <?xml version="1.0" encoding="UTF-8"?>
>>    > <definitions name="testBP" targetNamespace="
>>    > http://j2ee.netbeans.org/wsdl/testBP"
>>    >    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>    >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>    >    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>>    > http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>>    > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>>    > http://schemas.xmlsoap.org/wsdl/soap/">
>>    >    <types/>
>>    >    <message name="testBPOperationRequest">
>>    >        <part name="partIn" type="xsd:string"/>
>>    >    </message>
>>    >    <message name="testBPOperationResponse">
>>    >        <part name="partOut" type="xsd:string"/>
>>    >    </message>
>>    >    <portType name="testBPPortType">
>>    >        <operation name="testBPOperation">
>>    >            <input name="input1"
>>    message="tns:testBPOperationRequest"/>
>>    >            <output name="output1"
>>    message="tns:testBPOperationResponse"/>
>>    >        </operation>
>>    >    </portType>
>>    >    <binding name="testBPBinding" type="tns:testBPPortType">
>>    >        <soap:binding style="rpc" transport="
>>    > http://schemas.xmlsoap.org/soap/http"/>
>>    >        <operation name="testBPOperation">
>>    >            <soap:operation/>
>>    >            <input name="input1">
>>    >                <soap:body use="literal" namespace="
>>    > http://j2ee.netbeans.org/wsdl/testBP"/>
>>    >            </input>
>>    >            <output name="output1">
>>    >                <soap:body use="literal" namespace="
>>    > http://j2ee.netbeans.org/wsdl/testBP"/>
>>    >            </output>
>>    >        </operation>
>>    >    </binding>
>>    >    <service name="testBPService">
>>    >        <port name="testBPPort" binding="tns:testBPBinding">
>>    >            <soap:address location="
>>    > http://localhost:8084/ode/processes/testBP"/>
>>    >        </port>
>>    >    </service>
>>    >    <plnk:partnerLinkType name="testBPLT">
>>    >
>>    >        <plnk:role name="testBPPortTypeRole"
>>    portType="tns:testBPPortType"/>
>>    >    </plnk:partnerLinkType>
>>    > </definitions>
>>    >
>>    > ------------------------------
>>    > WSDL file: StringWSService.wsdl
>>    >
>>    > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>    > <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's
>>    version is
>>    > JAX-WS RI 2.1.4-b01-. -->
>>    > <definitions targetNamespace="http://MyWebServices/"
>>    > name="StringWSService"
>>    > xmlns="http://schemas.xmlsoap.org/wsdl/"
>>    xmlns:tns="http://MyWebServices/"
>>    > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>>    > http://schemas.xmlsoap.org/wsdl/soap/">
>>    >  <types>
>>    >    <xsd:schema>
>>    >      <xsd:import namespace="http://MyWebServices/"
>>    > schemaLocation="StringWSService_schema1.xsd"/>
>>    >    </xsd:schema>
>>    >  </types>
>>    >  <message name="testString">
>>    >    <part name="parameters" element="tns:testString"/>
>>    >  </message>
>>    >  <message name="testStringResponse">
>>    >    <part name="parameters" element="tns:testStringResponse"/>
>>    >  </message>
>>    >  <message name="reverse">
>>    >    <part name="parameters" element="tns:reverse"/>
>>    >  </message>
>>    >  <message name="reverseResponse">
>>    >    <part name="parameters" element="tns:reverseResponse"/>
>>    >  </message>
>>    >  <portType name="StringWS">
>>    >    <operation name="testString">
>>    >      <input message="tns:testString"/>
>>    >      <output message="tns:testStringResponse"/>
>>    >    </operation>
>>    >    <operation name="reverse">
>>    >      <input message="tns:reverse"/>
>>    >      <output message="tns:reverseResponse"/>
>>    >    </operation>
>>    >  </portType>
>>    >  <binding name="StringWSPortBinding" type="tns:StringWS">
>>    >    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>>    > style="document"/>
>>    >    <operation name="testString">
>>    >      <soap:operation soapAction=""/>
>>    >      <input>
>>    >        <soap:body use="literal"/>
>>    >      </input>
>>    >      <output>
>>    >        <soap:body use="literal"/>
>>    >      </output>
>>    >    </operation>
>>    >    <operation name="reverse">
>>    >      <soap:operation soapAction=""/>
>>    >      <input>
>>    >        <soap:body use="literal"/>
>>    >      </input>
>>    >      <output>
>>    >        <soap:body use="literal"/>
>>    >      </output>
>>    >    </operation>
>>    >  </binding>
>>    >  <service name="StringWSService">
>>    >    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>>    >      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>>    >    </port>
>>    >  </service>
>>    > </definitions>
>>    >
>>    > ------------------------------
>>    > WSDL file: StringWSServiceWrapper.wsdl
>>    >
>>    > <?xml version="1.0" encoding="UTF-8"?>
>>    >
>>    > <definitions
>>    >    xmlns="http://schemas.xmlsoap.org/wsdl/"
>>    >    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>    >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>    >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>    > name="StringWSServiceWrapper" targetNamespace="
>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>    xmlns:tns="
>>    > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>>    xmlns:plnk="
>>    > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>>    > http://MyWebServices/">
>>    >    <import location="StringWSService.wsdl" namespace="
>>    > http://MyWebServices/
>>    > "/>
>>    >    <plnk:partnerLinkType name="StringWSLinkType">
>>    >        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>>    >    </plnk:partnerLinkType>
>>    > </definitions>
>>    >
>>    > ------------------------------
>>    > Schema WSDL file:
>>    >
>>    > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>    > <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>>    > xmlns:tns="
>>    > http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>>    >
>>    >  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>>    >
>>    >  <xs:element name="reverseResponse" nillable="true"
>>    > type="tns:reverseResponse"/>
>>    >
>>    >  <xs:element name="testString" nillable="true"
>>    type="tns:testString"/>
>>    >
>>    >  <xs:element name="testStringResponse" nillable="true"
>>    > type="tns:testStringResponse"/>
>>    >
>>    >  <xs:complexType name="testString">
>>    >    <xs:sequence/>
>>    >  </xs:complexType>
>>    >
>>    >  <xs:complexType name="testStringResponse">
>>    >    <xs:sequence>
>>    >      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>    >    </xs:sequence>
>>    >  </xs:complexType>
>>    >
>>    >  <xs:complexType name="reverse">
>>    >    <xs:sequence>
>>    >      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>>    >    </xs:sequence>
>>    >  </xs:complexType>
>>    >
>>    >  <xs:complexType name="reverseResponse">
>>    >    <xs:sequence>
>>    >      <xs:element name="return" type="xs:string" minOccurs="0"/>
>>    >    </xs:sequence>
>>    >  </xs:complexType>
>>    > </xs:schema>
>>    >
>>    > ------------------------------
>>    >
>>    > Thank you very much!
>>    > Binh.
>>    >
>>    >
>>    >
>>    > 2008/11/11 ratha <rathav@wso2.com <ma...@wso2.com>>
>>
>>    >
>>    > > Hi Binh,
>>    > >
>>    > > I also faced such issue with SOAPUI. Check your assign
>>    activity whether
>>    > you
>>    > > assigned values correctly for the 'from' and 'to' parts.
>>    > >
>>    > > Regards
>>    > > -ratha.
>>    > >
>>    > > binh nguyen wrote:
>>    > >
>>    > >> Hi all,
>>    > >> I encounter the same error when run some BPEL processes.
>>    > >> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>>    > >> SOAPUI to test the result of BPEL after having deployed. The
>>    deployment
>>    > >> of the processes is OK, but when tested with soapUI, there is
>>    following
>>    > >> error:
>>    > >>
>>    > >> <soapenv:Envelope xmlns:soapenv="
>>    > >> http://schemas.xmlsoap.org/soap/envelope/">
>>    > >>   <soapenv:Body>
>>    > >>      <soapenv:Fault>
>>    > >>         <faultcode>soapenv:Server</faultcode>
>>    > >>         <faultstring xmlns:axis2ns11="
>>    > >> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>>    > >> ">axis2ns11:selectionFailure</faultstring>
>>    > >>         <detail/>
>>    > >>      </soapenv:Fault>
>>    > >>   </soapenv:Body>
>>    > >> </soapenv:Envelope>
>>    > >>
>>    > >> Any one has any idea about this kind of error?
>>    > >> Thank you!
>>    > >> Binh.
>>    > >>
>>    > >>
>>    >
>>
>> ------------------------------------------------------------------------
>>    > >>
>>    > >>
>>    > >> No virus found in this incoming message.
>>    > >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus
>>    Database:
>>    > >> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>    > >>
>>    > >>
>>    > >>
>>    > >
>>    > >
>>    >
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>> 270.9.2/1784 - Release Date: 11/12/2008 7:01 PM
>>
>>
>

Re: An error when run BPEL

Posted by ratha <ra...@wso2.com>.
Hi Binh,
What was the error?
and didn't send the BPEL file and your schema file...

Regards,
-Ratha.

binh nguyen wrote:
> Hi Alexis and Ratha,
> Thank you both of you. I have corrected the code to overcome the 
> SelectionFailure error, but now I have another error when Invoke. I 
> attach here all the codes and debug result. The error seems to lie in 
> the file testBP.bpel with input-output Operation reverse() (there is a 
> comment about the error. I also leave a run-well Invoke of output-only 
> Operation testString() to make you easier to compare and check the error).
> Plese take a look and check for me how to fix it?
> Thank you!
> Cheers,
> Binh.
>
>
>
> 2008/11/14 Alexis Midon <midon@intalio.com <ma...@intalio.com>>
>
>     Hi Binh,
>
>     could you set the log category
>     log4j.category.org.apache.ode.bpel.runtime.ASSIGN to  DEBUG,
>     reproduce and
>     then give us all the relevant logs. Knowing which assignment fails
>     against
>     which message would help a lot.
>
>     And because I just spent/wasted hours with a selection failure,
>     let me make
>     a guess:
>     your xml schema does set elementFormDefault to 'qualified' and
>     thus uses
>     'unqualified'. Your assigments are in line with that but what
>     about your
>     messages?
>     **
>     Alexis
>
>
>     On Tue, Nov 11, 2008 at 9:34 PM, binh nguyen
>     <linhtinh0274@gmail.com <ma...@gmail.com>> wrote:
>
>     > Hi Rathar and Alex,
>     > Thank you for your response, but I still do not know more concretely
>     >  how to correct the initialization of the variables. Here I show
>     my Bpel
>     > and related WSDL and Schema files. Please take a look and show
>     > me what I need to do to correct the error.
>     >
>     > BPEL file: testBP.bpel
>     >
>     > <?xml version="1.0" encoding="UTF-8"?>
>     > <process
>     >    name="testBP"
>     >  
>      targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>     >    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>     >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     >    xmlns:sxt="
>     > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>     >    xmlns:sxed="
>     >
>     http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>     >    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>     >
>     >    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>     >        location="testBP.wsdl"
>     >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>     >    <import namespace="
>     > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>     >        location="StringWSServiceWrapper.wsdl"
>     >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>     >    <import namespace="http://MyWebServices/"
>     >        location="StringWSService.wsdl"
>     >        importType="http://schemas.xmlsoap.org/wsdl/"/>
>     >
>     >    <partnerLinks>
>     >        <partnerLink name="StringPL"
>     >            xmlns:tns="
>     > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>     >            partnerLinkType="tns:StringWSLinkType"
>     > partnerRole="StringWSRole"
>     >            initializePartnerRole="yes"/>
>     >        <partnerLink name="TestPartnerLink"
>     >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>     >            partnerLinkType="tns:testBPLT"
>     myRole="testBPPortTypeRole"/>
>     >    </partnerLinks>
>     >    <variables>
>     >        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>     >            messageType="tns:reverseResponse"/>
>     >        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>     >            messageType="tns:reverse"/>
>     >        <variable name="TestBPOperationOut" xmlns:tns="
>     > http://j2ee.netbeans.org/wsdl/testBP"
>     >            messageType="tns:testBPOperationResponse"/>
>     >        <variable name="TestBPOperationIn" xmlns:tns="
>     > http://j2ee.netbeans.org/wsdl/testBP"
>     >            messageType="tns:testBPOperationRequest"/>
>     >    </variables>
>     >    <sequence>
>     >        <receive name="Receive1" createInstance="yes"
>     >            partnerLink="TestPartnerLink"
>     >            operation="testBPOperation"
>     >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>     >            portType="tns:testBPPortType"
>     >            variable="TestBPOperationIn"/>
>     >        <assign name="Assign1">
>     >            <copy>
>     >                <from variable="TestBPOperationIn" part="partIn"/>
>     >                <to>$ReverseIn.parameters/inputString</to>
>     >            </copy>
>     >        </assign>
>     >        <invoke name="Invoke1" partnerLink="StringPL"
>     >            operation="reverse" xmlns:tns="http://MyWebServices/"
>     >            portType="tns:StringWS"
>     >            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>     >        <assign name="Assign2">
>     >            <copy>
>     >                <from>$ReverseOut.parameters/return</from>
>     >                <to variable="TestBPOperationOut" part="partOut"/>
>     >            </copy>
>     >        </assign>
>     >        <reply name="Reply1" partnerLink="TestPartnerLink"
>     >            operation="testBPOperation"
>     >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>     >            portType="tns:testBPPortType"
>     >            variable="TestBPOperationOut"/>
>     >    </sequence>
>     > </process>
>     >
>     > ------------------------------
>     > WSDL File: testBP.wsdl
>     >
>     > <?xml version="1.0" encoding="UTF-8"?>
>     > <definitions name="testBP" targetNamespace="
>     > http://j2ee.netbeans.org/wsdl/testBP"
>     >    xmlns="http://schemas.xmlsoap.org/wsdl/"
>     >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     >    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
>     > http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
>     > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
>     > http://schemas.xmlsoap.org/wsdl/soap/">
>     >    <types/>
>     >    <message name="testBPOperationRequest">
>     >        <part name="partIn" type="xsd:string"/>
>     >    </message>
>     >    <message name="testBPOperationResponse">
>     >        <part name="partOut" type="xsd:string"/>
>     >    </message>
>     >    <portType name="testBPPortType">
>     >        <operation name="testBPOperation">
>     >            <input name="input1"
>     message="tns:testBPOperationRequest"/>
>     >            <output name="output1"
>     message="tns:testBPOperationResponse"/>
>     >        </operation>
>     >    </portType>
>     >    <binding name="testBPBinding" type="tns:testBPPortType">
>     >        <soap:binding style="rpc" transport="
>     > http://schemas.xmlsoap.org/soap/http"/>
>     >        <operation name="testBPOperation">
>     >            <soap:operation/>
>     >            <input name="input1">
>     >                <soap:body use="literal" namespace="
>     > http://j2ee.netbeans.org/wsdl/testBP"/>
>     >            </input>
>     >            <output name="output1">
>     >                <soap:body use="literal" namespace="
>     > http://j2ee.netbeans.org/wsdl/testBP"/>
>     >            </output>
>     >        </operation>
>     >    </binding>
>     >    <service name="testBPService">
>     >        <port name="testBPPort" binding="tns:testBPBinding">
>     >            <soap:address location="
>     > http://localhost:8084/ode/processes/testBP"/>
>     >        </port>
>     >    </service>
>     >    <plnk:partnerLinkType name="testBPLT">
>     >
>     >        <plnk:role name="testBPPortTypeRole"
>     portType="tns:testBPPortType"/>
>     >    </plnk:partnerLinkType>
>     > </definitions>
>     >
>     > ------------------------------
>     > WSDL file: StringWSService.wsdl
>     >
>     > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>     > <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's
>     version is
>     > JAX-WS RI 2.1.4-b01-. -->
>     > <definitions targetNamespace="http://MyWebServices/"
>     > name="StringWSService"
>     > xmlns="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:tns="http://MyWebServices/"
>     > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
>     > http://schemas.xmlsoap.org/wsdl/soap/">
>     >  <types>
>     >    <xsd:schema>
>     >      <xsd:import namespace="http://MyWebServices/"
>     > schemaLocation="StringWSService_schema1.xsd"/>
>     >    </xsd:schema>
>     >  </types>
>     >  <message name="testString">
>     >    <part name="parameters" element="tns:testString"/>
>     >  </message>
>     >  <message name="testStringResponse">
>     >    <part name="parameters" element="tns:testStringResponse"/>
>     >  </message>
>     >  <message name="reverse">
>     >    <part name="parameters" element="tns:reverse"/>
>     >  </message>
>     >  <message name="reverseResponse">
>     >    <part name="parameters" element="tns:reverseResponse"/>
>     >  </message>
>     >  <portType name="StringWS">
>     >    <operation name="testString">
>     >      <input message="tns:testString"/>
>     >      <output message="tns:testStringResponse"/>
>     >    </operation>
>     >    <operation name="reverse">
>     >      <input message="tns:reverse"/>
>     >      <output message="tns:reverseResponse"/>
>     >    </operation>
>     >  </portType>
>     >  <binding name="StringWSPortBinding" type="tns:StringWS">
>     >    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>     > style="document"/>
>     >    <operation name="testString">
>     >      <soap:operation soapAction=""/>
>     >      <input>
>     >        <soap:body use="literal"/>
>     >      </input>
>     >      <output>
>     >        <soap:body use="literal"/>
>     >      </output>
>     >    </operation>
>     >    <operation name="reverse">
>     >      <soap:operation soapAction=""/>
>     >      <input>
>     >        <soap:body use="literal"/>
>     >      </input>
>     >      <output>
>     >        <soap:body use="literal"/>
>     >      </output>
>     >    </operation>
>     >  </binding>
>     >  <service name="StringWSService">
>     >    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>     >      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>     >    </port>
>     >  </service>
>     > </definitions>
>     >
>     > ------------------------------
>     > WSDL file: StringWSServiceWrapper.wsdl
>     >
>     > <?xml version="1.0" encoding="UTF-8"?>
>     >
>     > <definitions
>     >    xmlns="http://schemas.xmlsoap.org/wsdl/"
>     >    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>     >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     > name="StringWSServiceWrapper" targetNamespace="
>     > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>     xmlns:tns="
>     > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>     xmlns:plnk="
>     > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
>     > http://MyWebServices/">
>     >    <import location="StringWSService.wsdl" namespace="
>     > http://MyWebServices/
>     > "/>
>     >    <plnk:partnerLinkType name="StringWSLinkType">
>     >        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>     >    </plnk:partnerLinkType>
>     > </definitions>
>     >
>     > ------------------------------
>     > Schema WSDL file:
>     >
>     > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>     > <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
>     > xmlns:tns="
>     > http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>     >
>     >  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>     >
>     >  <xs:element name="reverseResponse" nillable="true"
>     > type="tns:reverseResponse"/>
>     >
>     >  <xs:element name="testString" nillable="true"
>     type="tns:testString"/>
>     >
>     >  <xs:element name="testStringResponse" nillable="true"
>     > type="tns:testStringResponse"/>
>     >
>     >  <xs:complexType name="testString">
>     >    <xs:sequence/>
>     >  </xs:complexType>
>     >
>     >  <xs:complexType name="testStringResponse">
>     >    <xs:sequence>
>     >      <xs:element name="return" type="xs:string" minOccurs="0"/>
>     >    </xs:sequence>
>     >  </xs:complexType>
>     >
>     >  <xs:complexType name="reverse">
>     >    <xs:sequence>
>     >      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>     >    </xs:sequence>
>     >  </xs:complexType>
>     >
>     >  <xs:complexType name="reverseResponse">
>     >    <xs:sequence>
>     >      <xs:element name="return" type="xs:string" minOccurs="0"/>
>     >    </xs:sequence>
>     >  </xs:complexType>
>     > </xs:schema>
>     >
>     > ------------------------------
>     >
>     > Thank you very much!
>     > Binh.
>     >
>     >
>     >
>     > 2008/11/11 ratha <rathav@wso2.com <ma...@wso2.com>>
>     >
>     > > Hi Binh,
>     > >
>     > > I also faced such issue with SOAPUI. Check your assign
>     activity whether
>     > you
>     > > assigned values correctly for the 'from' and 'to' parts.
>     > >
>     > > Regards
>     > > -ratha.
>     > >
>     > > binh nguyen wrote:
>     > >
>     > >> Hi all,
>     > >> I encounter the same error when run some BPEL processes.
>     > >> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>     > >> SOAPUI to test the result of BPEL after having deployed. The
>     deployment
>     > >> of the processes is OK, but when tested with soapUI, there is
>     following
>     > >> error:
>     > >>
>     > >> <soapenv:Envelope xmlns:soapenv="
>     > >> http://schemas.xmlsoap.org/soap/envelope/">
>     > >>   <soapenv:Body>
>     > >>      <soapenv:Fault>
>     > >>         <faultcode>soapenv:Server</faultcode>
>     > >>         <faultstring xmlns:axis2ns11="
>     > >> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>     > >> ">axis2ns11:selectionFailure</faultstring>
>     > >>         <detail/>
>     > >>      </soapenv:Fault>
>     > >>   </soapenv:Body>
>     > >> </soapenv:Envelope>
>     > >>
>     > >> Any one has any idea about this kind of error?
>     > >> Thank you!
>     > >> Binh.
>     > >>
>     > >>
>     >
>      ------------------------------------------------------------------------
>     > >>
>     > >>
>     > >> No virus found in this incoming message.
>     > >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus
>     Database:
>     > >> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>     > >>
>     > >>
>     > >>
>     > >
>     > >
>     >
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.2/1784 - Release Date: 11/12/2008 7:01 PM
>


Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi Alexis and Ratha,
Thank you both of you. I have corrected the code to overcome the
SelectionFailure error, but now I have another error when Invoke. I attach
here all the codes and debug result. The error seems to lie in the file
testBP.bpel with input-output Operation reverse() (there is a comment about
the error. I also leave a run-well Invoke of output-only Operation
testString() to make you easier to compare and check the error).
Plese take a look and check for me how to fix it?
Thank you!
Cheers,
Binh.



2008/11/14 Alexis Midon <mi...@intalio.com>

> Hi Binh,
>
> could you set the log category
> log4j.category.org.apache.ode.bpel.runtime.ASSIGN to  DEBUG, reproduce and
> then give us all the relevant logs. Knowing which assignment fails against
> which message would help a lot.
>
> And because I just spent/wasted hours with a selection failure, let me make
> a guess:
> your xml schema does set elementFormDefault to 'qualified' and thus uses
> 'unqualified'. Your assigments are in line with that but what about your
> messages?
> **
> Alexis
>
>
> On Tue, Nov 11, 2008 at 9:34 PM, binh nguyen <li...@gmail.com>
> wrote:
>
> > Hi Rathar and Alex,
> > Thank you for your response, but I still do not know more concretely
> >  how to correct the initialization of the variables. Here I show my Bpel
> > and related WSDL and Schema files. Please take a look and show
> > me what I need to do to correct the error.
> >
> > BPEL file: testBP.bpel
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <process
> >    name="testBP"
> >    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
> >    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >    xmlns:sxt="
> > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
> >    xmlns:sxed="
> > http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
> >    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
> >
> >    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
> >        location="testBP.wsdl"
> >        importType="http://schemas.xmlsoap.org/wsdl/"/>
> >    <import namespace="
> > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
> >        location="StringWSServiceWrapper.wsdl"
> >        importType="http://schemas.xmlsoap.org/wsdl/"/>
> >    <import namespace="http://MyWebServices/"
> >        location="StringWSService.wsdl"
> >        importType="http://schemas.xmlsoap.org/wsdl/"/>
> >
> >    <partnerLinks>
> >        <partnerLink name="StringPL"
> >            xmlns:tns="
> > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
> >            partnerLinkType="tns:StringWSLinkType"
> > partnerRole="StringWSRole"
> >            initializePartnerRole="yes"/>
> >        <partnerLink name="TestPartnerLink"
> >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
> >            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
> >    </partnerLinks>
> >    <variables>
> >        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
> >            messageType="tns:reverseResponse"/>
> >        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
> >            messageType="tns:reverse"/>
> >        <variable name="TestBPOperationOut" xmlns:tns="
> > http://j2ee.netbeans.org/wsdl/testBP"
> >            messageType="tns:testBPOperationResponse"/>
> >        <variable name="TestBPOperationIn" xmlns:tns="
> > http://j2ee.netbeans.org/wsdl/testBP"
> >            messageType="tns:testBPOperationRequest"/>
> >    </variables>
> >    <sequence>
> >        <receive name="Receive1" createInstance="yes"
> >            partnerLink="TestPartnerLink"
> >            operation="testBPOperation"
> >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
> >            portType="tns:testBPPortType"
> >            variable="TestBPOperationIn"/>
> >        <assign name="Assign1">
> >            <copy>
> >                <from variable="TestBPOperationIn" part="partIn"/>
> >                <to>$ReverseIn.parameters/inputString</to>
> >            </copy>
> >        </assign>
> >        <invoke name="Invoke1" partnerLink="StringPL"
> >            operation="reverse" xmlns:tns="http://MyWebServices/"
> >            portType="tns:StringWS"
> >            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
> >        <assign name="Assign2">
> >            <copy>
> >                <from>$ReverseOut.parameters/return</from>
> >                <to variable="TestBPOperationOut" part="partOut"/>
> >            </copy>
> >        </assign>
> >        <reply name="Reply1" partnerLink="TestPartnerLink"
> >            operation="testBPOperation"
> >            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
> >            portType="tns:testBPPortType"
> >            variable="TestBPOperationOut"/>
> >    </sequence>
> > </process>
> >
> > ------------------------------
> > WSDL File: testBP.wsdl
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <definitions name="testBP" targetNamespace="
> > http://j2ee.netbeans.org/wsdl/testBP"
> >    xmlns="http://schemas.xmlsoap.org/wsdl/"
> >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
> > http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
> > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
> > http://schemas.xmlsoap.org/wsdl/soap/">
> >    <types/>
> >    <message name="testBPOperationRequest">
> >        <part name="partIn" type="xsd:string"/>
> >    </message>
> >    <message name="testBPOperationResponse">
> >        <part name="partOut" type="xsd:string"/>
> >    </message>
> >    <portType name="testBPPortType">
> >        <operation name="testBPOperation">
> >            <input name="input1" message="tns:testBPOperationRequest"/>
> >            <output name="output1" message="tns:testBPOperationResponse"/>
> >        </operation>
> >    </portType>
> >    <binding name="testBPBinding" type="tns:testBPPortType">
> >        <soap:binding style="rpc" transport="
> > http://schemas.xmlsoap.org/soap/http"/>
> >        <operation name="testBPOperation">
> >            <soap:operation/>
> >            <input name="input1">
> >                <soap:body use="literal" namespace="
> > http://j2ee.netbeans.org/wsdl/testBP"/>
> >            </input>
> >            <output name="output1">
> >                <soap:body use="literal" namespace="
> > http://j2ee.netbeans.org/wsdl/testBP"/>
> >            </output>
> >        </operation>
> >    </binding>
> >    <service name="testBPService">
> >        <port name="testBPPort" binding="tns:testBPBinding">
> >            <soap:address location="
> > http://localhost:8084/ode/processes/testBP"/>
> >        </port>
> >    </service>
> >    <plnk:partnerLinkType name="testBPLT">
> >
> >        <plnk:role name="testBPPortTypeRole"
> portType="tns:testBPPortType"/>
> >    </plnk:partnerLinkType>
> > </definitions>
> >
> > ------------------------------
> > WSDL file: StringWSService.wsdl
> >
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version
> is
> > JAX-WS RI 2.1.4-b01-. -->
> > <definitions targetNamespace="http://MyWebServices/"
> > name="StringWSService"
> > xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="
> http://MyWebServices/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
> > http://schemas.xmlsoap.org/wsdl/soap/">
> >  <types>
> >    <xsd:schema>
> >      <xsd:import namespace="http://MyWebServices/"
> > schemaLocation="StringWSService_schema1.xsd"/>
> >    </xsd:schema>
> >  </types>
> >  <message name="testString">
> >    <part name="parameters" element="tns:testString"/>
> >  </message>
> >  <message name="testStringResponse">
> >    <part name="parameters" element="tns:testStringResponse"/>
> >  </message>
> >  <message name="reverse">
> >    <part name="parameters" element="tns:reverse"/>
> >  </message>
> >  <message name="reverseResponse">
> >    <part name="parameters" element="tns:reverseResponse"/>
> >  </message>
> >  <portType name="StringWS">
> >    <operation name="testString">
> >      <input message="tns:testString"/>
> >      <output message="tns:testStringResponse"/>
> >    </operation>
> >    <operation name="reverse">
> >      <input message="tns:reverse"/>
> >      <output message="tns:reverseResponse"/>
> >    </operation>
> >  </portType>
> >  <binding name="StringWSPortBinding" type="tns:StringWS">
> >    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> > style="document"/>
> >    <operation name="testString">
> >      <soap:operation soapAction=""/>
> >      <input>
> >        <soap:body use="literal"/>
> >      </input>
> >      <output>
> >        <soap:body use="literal"/>
> >      </output>
> >    </operation>
> >    <operation name="reverse">
> >      <soap:operation soapAction=""/>
> >      <input>
> >        <soap:body use="literal"/>
> >      </input>
> >      <output>
> >        <soap:body use="literal"/>
> >      </output>
> >    </operation>
> >  </binding>
> >  <service name="StringWSService">
> >    <port name="StringWSPort" binding="tns:StringWSPortBinding">
> >      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
> >    </port>
> >  </service>
> > </definitions>
> >
> > ------------------------------
> > WSDL file: StringWSServiceWrapper.wsdl
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <definitions
> >    xmlns="http://schemas.xmlsoap.org/wsdl/"
> >    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> >    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > name="StringWSServiceWrapper" targetNamespace="
> > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
> > http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
> > http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
> > http://MyWebServices/">
> >    <import location="StringWSService.wsdl" namespace="
> > http://MyWebServices/
> > "/>
> >    <plnk:partnerLinkType name="StringWSLinkType">
> >        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
> >    </plnk:partnerLinkType>
> > </definitions>
> >
> > ------------------------------
> > Schema WSDL file:
> >
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
> > xmlns:tns="
> > http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> >
> >  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
> >
> >  <xs:element name="reverseResponse" nillable="true"
> > type="tns:reverseResponse"/>
> >
> >  <xs:element name="testString" nillable="true" type="tns:testString"/>
> >
> >  <xs:element name="testStringResponse" nillable="true"
> > type="tns:testStringResponse"/>
> >
> >  <xs:complexType name="testString">
> >    <xs:sequence/>
> >  </xs:complexType>
> >
> >  <xs:complexType name="testStringResponse">
> >    <xs:sequence>
> >      <xs:element name="return" type="xs:string" minOccurs="0"/>
> >    </xs:sequence>
> >  </xs:complexType>
> >
> >  <xs:complexType name="reverse">
> >    <xs:sequence>
> >      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
> >    </xs:sequence>
> >  </xs:complexType>
> >
> >  <xs:complexType name="reverseResponse">
> >    <xs:sequence>
> >      <xs:element name="return" type="xs:string" minOccurs="0"/>
> >    </xs:sequence>
> >  </xs:complexType>
> > </xs:schema>
> >
> > ------------------------------
> >
> > Thank you very much!
> > Binh.
> >
> >
> >
> > 2008/11/11 ratha <ra...@wso2.com>
> >
> > > Hi Binh,
> > >
> > > I also faced such issue with SOAPUI. Check your assign activity whether
> > you
> > > assigned values correctly for the 'from' and 'to' parts.
> > >
> > > Regards
> > > -ratha.
> > >
> > > binh nguyen wrote:
> > >
> > >> Hi all,
> > >> I encounter the same error when run some BPEL processes.
> > >> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
> > >> SOAPUI to test the result of BPEL after having deployed. The
> deployment
> > >> of the processes is OK, but when tested with soapUI, there is
> following
> > >> error:
> > >>
> > >> <soapenv:Envelope xmlns:soapenv="
> > >> http://schemas.xmlsoap.org/soap/envelope/">
> > >>   <soapenv:Body>
> > >>      <soapenv:Fault>
> > >>         <faultcode>soapenv:Server</faultcode>
> > >>         <faultstring xmlns:axis2ns11="
> > >> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> > >> ">axis2ns11:selectionFailure</faultstring>
> > >>         <detail/>
> > >>      </soapenv:Fault>
> > >>   </soapenv:Body>
> > >> </soapenv:Envelope>
> > >>
> > >> Any one has any idea about this kind of error?
> > >> Thank you!
> > >> Binh.
> > >>
> > >>
> >  ------------------------------------------------------------------------
> > >>
> > >>
> > >> No virus found in this incoming message.
> > >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus
> Database:
> > >> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
> > >>
> > >>
> > >>
> > >
> > >
> >
>

Re: An error when run BPEL

Posted by Alexis Midon <mi...@intalio.com>.
Hi Binh,

could you set the log category
log4j.category.org.apache.ode.bpel.runtime.ASSIGN to  DEBUG, reproduce and
then give us all the relevant logs. Knowing which assignment fails against
which message would help a lot.

And because I just spent/wasted hours with a selection failure, let me make
a guess:
your xml schema does set elementFormDefault to 'qualified' and thus uses
'unqualified'. Your assigments are in line with that but what about your
messages?
**
Alexis


On Tue, Nov 11, 2008 at 9:34 PM, binh nguyen <li...@gmail.com> wrote:

> Hi Rathar and Alex,
> Thank you for your response, but I still do not know more concretely
>  how to correct the initialization of the variables. Here I show my Bpel
> and related WSDL and Schema files. Please take a look and show
> me what I need to do to correct the error.
>
> BPEL file: testBP.bpel
>
> <?xml version="1.0" encoding="UTF-8"?>
> <process
>    name="testBP"
>    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
>    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    xmlns:sxt="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>    xmlns:sxed="
> http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">
>
>    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
>        location="testBP.wsdl"
>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>    <import namespace="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>        location="StringWSServiceWrapper.wsdl"
>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>    <import namespace="http://MyWebServices/"
>        location="StringWSService.wsdl"
>        importType="http://schemas.xmlsoap.org/wsdl/"/>
>
>    <partnerLinks>
>        <partnerLink name="StringPL"
>            xmlns:tns="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
>            partnerLinkType="tns:StringWSLinkType"
> partnerRole="StringWSRole"
>            initializePartnerRole="yes"/>
>        <partnerLink name="TestPartnerLink"
>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
>    </partnerLinks>
>    <variables>
>        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
>            messageType="tns:reverseResponse"/>
>        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
>            messageType="tns:reverse"/>
>        <variable name="TestBPOperationOut" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP"
>            messageType="tns:testBPOperationResponse"/>
>        <variable name="TestBPOperationIn" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP"
>            messageType="tns:testBPOperationRequest"/>
>    </variables>
>    <sequence>
>        <receive name="Receive1" createInstance="yes"
>            partnerLink="TestPartnerLink"
>            operation="testBPOperation"
>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>            portType="tns:testBPPortType"
>            variable="TestBPOperationIn"/>
>        <assign name="Assign1">
>            <copy>
>                <from variable="TestBPOperationIn" part="partIn"/>
>                <to>$ReverseIn.parameters/inputString</to>
>            </copy>
>        </assign>
>        <invoke name="Invoke1" partnerLink="StringPL"
>            operation="reverse" xmlns:tns="http://MyWebServices/"
>            portType="tns:StringWS"
>            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
>        <assign name="Assign2">
>            <copy>
>                <from>$ReverseOut.parameters/return</from>
>                <to variable="TestBPOperationOut" part="partOut"/>
>            </copy>
>        </assign>
>        <reply name="Reply1" partnerLink="TestPartnerLink"
>            operation="testBPOperation"
>            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
>            portType="tns:testBPPortType"
>            variable="TestBPOperationOut"/>
>    </sequence>
> </process>
>
> ------------------------------
> WSDL File: testBP.wsdl
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="testBP" targetNamespace="
> http://j2ee.netbeans.org/wsdl/testBP"
>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
> http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/">
>    <types/>
>    <message name="testBPOperationRequest">
>        <part name="partIn" type="xsd:string"/>
>    </message>
>    <message name="testBPOperationResponse">
>        <part name="partOut" type="xsd:string"/>
>    </message>
>    <portType name="testBPPortType">
>        <operation name="testBPOperation">
>            <input name="input1" message="tns:testBPOperationRequest"/>
>            <output name="output1" message="tns:testBPOperationResponse"/>
>        </operation>
>    </portType>
>    <binding name="testBPBinding" type="tns:testBPPortType">
>        <soap:binding style="rpc" transport="
> http://schemas.xmlsoap.org/soap/http"/>
>        <operation name="testBPOperation">
>            <soap:operation/>
>            <input name="input1">
>                <soap:body use="literal" namespace="
> http://j2ee.netbeans.org/wsdl/testBP"/>
>            </input>
>            <output name="output1">
>                <soap:body use="literal" namespace="
> http://j2ee.netbeans.org/wsdl/testBP"/>
>            </output>
>        </operation>
>    </binding>
>    <service name="testBPService">
>        <port name="testBPPort" binding="tns:testBPBinding">
>            <soap:address location="
> http://localhost:8084/ode/processes/testBP"/>
>        </port>
>    </service>
>    <plnk:partnerLinkType name="testBPLT">
>
>        <plnk:role name="testBPPortTypeRole" portType="tns:testBPPortType"/>
>    </plnk:partnerLinkType>
> </definitions>
>
> ------------------------------
> WSDL file: StringWSService.wsdl
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is
> JAX-WS RI 2.1.4-b01-. -->
> <definitions targetNamespace="http://MyWebServices/"
> name="StringWSService"
> xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://MyWebServices/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/">
>  <types>
>    <xsd:schema>
>      <xsd:import namespace="http://MyWebServices/"
> schemaLocation="StringWSService_schema1.xsd"/>
>    </xsd:schema>
>  </types>
>  <message name="testString">
>    <part name="parameters" element="tns:testString"/>
>  </message>
>  <message name="testStringResponse">
>    <part name="parameters" element="tns:testStringResponse"/>
>  </message>
>  <message name="reverse">
>    <part name="parameters" element="tns:reverse"/>
>  </message>
>  <message name="reverseResponse">
>    <part name="parameters" element="tns:reverseResponse"/>
>  </message>
>  <portType name="StringWS">
>    <operation name="testString">
>      <input message="tns:testString"/>
>      <output message="tns:testStringResponse"/>
>    </operation>
>    <operation name="reverse">
>      <input message="tns:reverse"/>
>      <output message="tns:reverseResponse"/>
>    </operation>
>  </portType>
>  <binding name="StringWSPortBinding" type="tns:StringWS">
>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/>
>    <operation name="testString">
>      <soap:operation soapAction=""/>
>      <input>
>        <soap:body use="literal"/>
>      </input>
>      <output>
>        <soap:body use="literal"/>
>      </output>
>    </operation>
>    <operation name="reverse">
>      <soap:operation soapAction=""/>
>      <input>
>        <soap:body use="literal"/>
>      </input>
>      <output>
>        <soap:body use="literal"/>
>      </output>
>    </operation>
>  </binding>
>  <service name="StringWSService">
>    <port name="StringWSPort" binding="tns:StringWSPortBinding">
>      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
>    </port>
>  </service>
> </definitions>
>
> ------------------------------
> WSDL file: StringWSServiceWrapper.wsdl
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <definitions
>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> name="StringWSServiceWrapper" targetNamespace="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
> http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
> http://MyWebServices/">
>    <import location="StringWSService.wsdl" namespace="
> http://MyWebServices/
> "/>
>    <plnk:partnerLinkType name="StringWSLinkType">
>        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
>    </plnk:partnerLinkType>
> </definitions>
>
> ------------------------------
> Schema WSDL file:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <xs:schema version="1.0" targetNamespace="http://MyWebServices/"
> xmlns:tns="
> http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>  <xs:element name="reverse" nillable="true" type="tns:reverse"/>
>
>  <xs:element name="reverseResponse" nillable="true"
> type="tns:reverseResponse"/>
>
>  <xs:element name="testString" nillable="true" type="tns:testString"/>
>
>  <xs:element name="testStringResponse" nillable="true"
> type="tns:testStringResponse"/>
>
>  <xs:complexType name="testString">
>    <xs:sequence/>
>  </xs:complexType>
>
>  <xs:complexType name="testStringResponse">
>    <xs:sequence>
>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
>
>  <xs:complexType name="reverse">
>    <xs:sequence>
>      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
>
>  <xs:complexType name="reverseResponse">
>    <xs:sequence>
>      <xs:element name="return" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
> </xs:schema>
>
> ------------------------------
>
> Thank you very much!
> Binh.
>
>
>
> 2008/11/11 ratha <ra...@wso2.com>
>
> > Hi Binh,
> >
> > I also faced such issue with SOAPUI. Check your assign activity whether
> you
> > assigned values correctly for the 'from' and 'to' parts.
> >
> > Regards
> > -ratha.
> >
> > binh nguyen wrote:
> >
> >> Hi all,
> >> I encounter the same error when run some BPEL processes.
> >> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
> >> SOAPUI to test the result of BPEL after having deployed. The deployment
> >> of the processes is OK, but when tested with soapUI, there is following
> >> error:
> >>
> >> <soapenv:Envelope xmlns:soapenv="
> >> http://schemas.xmlsoap.org/soap/envelope/">
> >>   <soapenv:Body>
> >>      <soapenv:Fault>
> >>         <faultcode>soapenv:Server</faultcode>
> >>         <faultstring xmlns:axis2ns11="
> >> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> >> ">axis2ns11:selectionFailure</faultstring>
> >>         <detail/>
> >>      </soapenv:Fault>
> >>   </soapenv:Body>
> >> </soapenv:Envelope>
> >>
> >> Any one has any idea about this kind of error?
> >> Thank you!
> >> Binh.
> >>
> >>
>  ------------------------------------------------------------------------
> >>
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
> >> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
> >>
> >>
> >>
> >
> >
>

Re: An error when run BPEL

Posted by binh nguyen <li...@gmail.com>.
Hi Rathar and Alex,
Thank you for your response, but I still do not know more concretely
 how to correct the initialization of the variables. Here I show my Bpel
and related WSDL and Schema files. Please take a look and show
me what I need to do to correct the error.

BPEL file: testBP.bpel

<?xml version="1.0" encoding="UTF-8"?>
<process
    name="testBP"
    targetNamespace="http://enterprise.netbeans.org/bpel/StringBP/testBP"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="
http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="
http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="http://enterprise.netbeans.org/bpel/StringBP/testBP">

    <import namespace="http://j2ee.netbeans.org/wsdl/testBP"
        location="testBP.wsdl"
        importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="
http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
        location="StringWSServiceWrapper.wsdl"
        importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://MyWebServices/"
        location="StringWSService.wsdl"
        importType="http://schemas.xmlsoap.org/wsdl/"/>

    <partnerLinks>
        <partnerLink name="StringPL"
            xmlns:tns="
http://enterprise.netbeans.org/bpel/StringWSServiceWrapper"
            partnerLinkType="tns:StringWSLinkType"
partnerRole="StringWSRole"
            initializePartnerRole="yes"/>
        <partnerLink name="TestPartnerLink"
            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
            partnerLinkType="tns:testBPLT" myRole="testBPPortTypeRole"/>
    </partnerLinks>
    <variables>
        <variable name="ReverseOut" xmlns:tns="http://MyWebServices/"
            messageType="tns:reverseResponse"/>
        <variable name="ReverseIn" xmlns:tns="http://MyWebServices/"
            messageType="tns:reverse"/>
        <variable name="TestBPOperationOut" xmlns:tns="
http://j2ee.netbeans.org/wsdl/testBP"
            messageType="tns:testBPOperationResponse"/>
        <variable name="TestBPOperationIn" xmlns:tns="
http://j2ee.netbeans.org/wsdl/testBP"
            messageType="tns:testBPOperationRequest"/>
    </variables>
    <sequence>
        <receive name="Receive1" createInstance="yes"
            partnerLink="TestPartnerLink"
            operation="testBPOperation"
            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
            portType="tns:testBPPortType"
            variable="TestBPOperationIn"/>
        <assign name="Assign1">
            <copy>
                <from variable="TestBPOperationIn" part="partIn"/>
                <to>$ReverseIn.parameters/inputString</to>
            </copy>
        </assign>
        <invoke name="Invoke1" partnerLink="StringPL"
            operation="reverse" xmlns:tns="http://MyWebServices/"
            portType="tns:StringWS"
            inputVariable="ReverseIn" outputVariable="ReverseOut"/>
        <assign name="Assign2">
            <copy>
                <from>$ReverseOut.parameters/return</from>
                <to variable="TestBPOperationOut" part="partOut"/>
            </copy>
        </assign>
        <reply name="Reply1" partnerLink="TestPartnerLink"
            operation="testBPOperation"
            xmlns:tns="http://j2ee.netbeans.org/wsdl/testBP"
            portType="tns:testBPPortType"
            variable="TestBPOperationOut"/>
    </sequence>
</process>

------------------------------
WSDL File: testBP.wsdl

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="testBP" targetNamespace="
http://j2ee.netbeans.org/wsdl/testBP"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="
http://j2ee.netbeans.org/wsdl/testBP" xmlns:plnk="
http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="testBPOperationRequest">
        <part name="partIn" type="xsd:string"/>
    </message>
    <message name="testBPOperationResponse">
        <part name="partOut" type="xsd:string"/>
    </message>
    <portType name="testBPPortType">
        <operation name="testBPOperation">
            <input name="input1" message="tns:testBPOperationRequest"/>
            <output name="output1" message="tns:testBPOperationResponse"/>
        </operation>
    </portType>
    <binding name="testBPBinding" type="tns:testBPPortType">
        <soap:binding style="rpc" transport="
http://schemas.xmlsoap.org/soap/http"/>
        <operation name="testBPOperation">
            <soap:operation/>
            <input name="input1">
                <soap:body use="literal" namespace="
http://j2ee.netbeans.org/wsdl/testBP"/>
            </input>
            <output name="output1">
                <soap:body use="literal" namespace="
http://j2ee.netbeans.org/wsdl/testBP"/>
            </output>
        </operation>
    </binding>
    <service name="testBPService">
        <port name="testBPPort" binding="tns:testBPBinding">
            <soap:address location="
http://localhost:8084/ode/processes/testBP"/>
        </port>
    </service>
    <plnk:partnerLinkType name="testBPLT">

        <plnk:role name="testBPPortTypeRole" portType="tns:testBPPortType"/>
    </plnk:partnerLinkType>
</definitions>

------------------------------
WSDL file: StringWSService.wsdl

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is
JAX-WS RI 2.1.4-b01-. -->
<definitions targetNamespace="http://MyWebServices/" name="StringWSService"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://MyWebServices/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">
  <types>
    <xsd:schema>
      <xsd:import namespace="http://MyWebServices/"
schemaLocation="StringWSService_schema1.xsd"/>
    </xsd:schema>
  </types>
  <message name="testString">
    <part name="parameters" element="tns:testString"/>
  </message>
  <message name="testStringResponse">
    <part name="parameters" element="tns:testStringResponse"/>
  </message>
  <message name="reverse">
    <part name="parameters" element="tns:reverse"/>
  </message>
  <message name="reverseResponse">
    <part name="parameters" element="tns:reverseResponse"/>
  </message>
  <portType name="StringWS">
    <operation name="testString">
      <input message="tns:testString"/>
      <output message="tns:testStringResponse"/>
    </operation>
    <operation name="reverse">
      <input message="tns:reverse"/>
      <output message="tns:reverseResponse"/>
    </operation>
  </portType>
  <binding name="StringWSPortBinding" type="tns:StringWS">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
    <operation name="testString">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
    <operation name="reverse">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="StringWSService">
    <port name="StringWSPort" binding="tns:StringWSPortBinding">
      <soap:address location="http://localhost:8084/MyWS/StringWS"/>
    </port>
  </service>
</definitions>

------------------------------
WSDL file: StringWSServiceWrapper.wsdl

<?xml version="1.0" encoding="UTF-8"?>

<definitions
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="StringWSServiceWrapper" targetNamespace="
http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:tns="
http://enterprise.netbeans.org/bpel/StringWSServiceWrapper" xmlns:plnk="
http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="
http://MyWebServices/">
    <import location="StringWSService.wsdl" namespace="http://MyWebServices/
"/>
    <plnk:partnerLinkType name="StringWSLinkType">
        <plnk:role name="StringWSRole" portType="ns:StringWS"/>
    </plnk:partnerLinkType>
</definitions>

------------------------------
Schema WSDL file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" targetNamespace="http://MyWebServices/" xmlns:tns="
http://MyWebServices/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="reverse" nillable="true" type="tns:reverse"/>

  <xs:element name="reverseResponse" nillable="true"
type="tns:reverseResponse"/>

  <xs:element name="testString" nillable="true" type="tns:testString"/>

  <xs:element name="testStringResponse" nillable="true"
type="tns:testStringResponse"/>

  <xs:complexType name="testString">
    <xs:sequence/>
  </xs:complexType>

  <xs:complexType name="testStringResponse">
    <xs:sequence>
      <xs:element name="return" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="reverse">
    <xs:sequence>
      <xs:element name="inputString" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="reverseResponse">
    <xs:sequence>
      <xs:element name="return" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

------------------------------

Thank you very much!
Binh.



2008/11/11 ratha <ra...@wso2.com>

> Hi Binh,
>
> I also faced such issue with SOAPUI. Check your assign activity whether you
> assigned values correctly for the 'from' and 'to' parts.
>
> Regards
> -ratha.
>
> binh nguyen wrote:
>
>> Hi all,
>> I encounter the same error when run some BPEL processes.
>> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
>> SOAPUI to test the result of BPEL after having deployed. The deployment
>> of the processes is OK, but when tested with soapUI, there is following
>> error:
>>
>> <soapenv:Envelope xmlns:soapenv="
>> http://schemas.xmlsoap.org/soap/envelope/">
>>   <soapenv:Body>
>>      <soapenv:Fault>
>>         <faultcode>soapenv:Server</faultcode>
>>         <faultstring xmlns:axis2ns11="
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable
>> ">axis2ns11:selectionFailure</faultstring>
>>         <detail/>
>>      </soapenv:Fault>
>>   </soapenv:Body>
>> </soapenv:Envelope>
>>
>> Any one has any idea about this kind of error?
>> Thank you!
>> Binh.
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database:
>> 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>>
>>
>>
>
>

Re: An error when run BPEL

Posted by ratha <ra...@wso2.com>.
Hi Binh,

I also faced such issue with SOAPUI. Check your assign activity whether 
you assigned values correctly for the 'from' and 'to' parts.

Regards
-ratha.

binh nguyen wrote:
> Hi all,
> I encounter the same error when run some BPEL processes.
> I am using Tomcat 6.0.16, ODE 1.2, Java JDK 1.5, and also using
> SOAPUI to test the result of BPEL after having deployed. The deployment
> of the processes is OK, but when tested with soapUI, there is following
> error:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Body>
>       <soapenv:Fault>
>          <faultcode>soapenv:Server</faultcode>
>          <faultstring xmlns:axis2ns11="
> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> ">axis2ns11:selectionFailure</faultstring>
>          <detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>
>
> Any one has any idea about this kind of error?
> Thank you!
> Binh.
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
>
>