Thanks... It is Sorted now!!

>>> Gary Brown <[email protected]> 6/09/2011 6:14 PM >>>
Hi Mark

A patch has been provided to support inline variable initialization,
but this is post version 1.3.5.

So therefore for now you will need to initialise the variables using
the assign/copy construct.

Regards
Gary

On Tue, Sep 6, 2011 at 2:57 AM, Mark Bullathsinghalage Cooray
<[email protected]> wrote:
> Hi All,
>
> I am sending request to a simple BPEL process with one PL.
>
> The Request :
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:q0="org.booking.travel" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> - ( http://127.0.0.1:61460/wse/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=0# 
> )     <soapenv:Body>
> - ( http://127.0.0.1:61460/wse/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=0# 
> )         <q0:travelBookingServiceRequest>
>              <q0:cardNumber>12345678</q0:cardNumber>
>              <q0:cardType>WWWW</q0:cardType>
>      </q0:travelBookingServiceRequest>
>  </soapenv:Body>
> </soapenv:Envelope>
>
> The Response that I am getting is
>
>  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> - ( http://127.0.0.1:61460/wse/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=1# 
> )     <soapenv:Body>
>
> - ( http://127.0.0.1:61460/wse/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=1# 
> )         <soapenv:Fault>
>              <faultcode>soapenv:Server</faultcode>
>                  <faultstring 
> xmlns:axis2ns3343="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>axis2ns3343:uninitializedVariable</faultstring>
>  <detail />
>      </soapenv:Fault>
>  </soapenv:Body>
> </soapenv:Envelope>
>
>
> However the variables are initialized in BPEL process
>
> <bpel:variables>
>  <!-- Reference to the message passed as input during initiation -->
>  <bpel:variable name="input"
>   messageType="tns:travelBookingServiceRequestMessage">
>   <bpel:from>
>    <bpel:literal xml:space="preserve"><tns:travelBookingServiceRequest
>     xmlns:tns="org.booking.travel" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  <tns:cardNumber>11111111111</tns:cardNumber>
>  <tns:cardType>CCCC</tns:cardType>
> </tns:travelBookingServiceRequest>
> </bpel:literal>
>   </bpel:from>
>  </bpel:variable>
>
>  <!-- Reference to the message that will be returned to the requester -->
>  <bpel:variable name="output"
>   messageType="tns:travelBookingServiceResponseMessage">
>   <bpel:from>
>    <bpel:literal xml:space="preserve"><tns:travelBookingServiceResponse
>     xmlns:tns="org.booking.travel" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  <tns:result>true</tns:result>
> </tns:travelBookingServiceResponse>
> </bpel:literal>
>   </bpel:from>
>  </bpel:variable>
>  <bpel:variable name="creditCardPLResponse" 
> messageType="ns:validateCreditCardResponse">
>   <bpel:from>
>    <bpel:literal xml:space="preserve"><ns:validateCreditCardResponse
>     xmlns:ns="http://checkCredit.apache.org"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  <ns:return>true</ns:return>
> </ns:validateCreditCardResponse>
> </bpel:literal>
>   </bpel:from>
>  </bpel:variable>
>  <bpel:variable name="creditCardPLRequest" 
> messageType="ns:validateCreditCardRequest">
>   <bpel:from>
>    <bpel:literal xml:space="preserve"><ns:validateCreditCard
>     xmlns:ns="http://checkCredit.apache.org"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  <ns:str_CardNumber>00000</ns:str_CardNumber>
>  <ns:str_CardType>AAA</ns:str_CardType>
> </ns:validateCreditCard>
> </bpel:literal>
>   </bpel:from>
>  </bpel:variable>
>  </bpel:variables>
>
> I have a statement to print when server gets the request the console prints 
> it but the response is not
>
> Please help with the error.
>
> Regards,
>
> Mark.
>
>
>
>

Reply via email to