Hi Mark, On 2 September 2011 13:16, Mark Bullathsinghalage Cooray < [email protected]> wrote:
> I think now the XML stuff will appear (Google Chrome is too smart to avoid > it :)) > > I am initializing a request variable in the BPEL process as below. > > > <bpel:variable name="creditValidatorRequest" > messageType="ns:validateCreditCardRequest"> > <bpel:from> > <bpel:literal xml:space="preserve"> > <ns:o_CC_Instance> > <xsd:str_CardNumber>SGDDK</xsd:str_CardNumber> > <xsd:str_CardType>KSADGKFD</xsd:str_CardType> > </ns:o_CC_Instance> > </bpel:literal> > </bpel:from> > </bpel:variable> > It seems that this way of initialization of the variable is not working. Looks like a bug to me, please create a jira. Instead, You can initialize this variable using a copy statement. Thanks, Waruna > > and I copy the content form the Receive message to invoke operation as > below. > <bpel:assign validate="no" name="AssignBookingData"> > > <bpel:copy> > <bpel:from part="payload" variable="input"> > <bpel:query > queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> > <![CDATA[tns:cardNumber]]> > </bpel:query> > </bpel:from> > <bpel:to part="parameters" > variable="creditValidatorRequest"> > <bpel:query > queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> > <![CDATA[ns:o_CC_Instance/xsd:str_CardNumber]]> > </bpel:query> > </bpel:to> > </bpel:copy> > <bpel:copy> > <bpel:from part="payload" variable="input"> > <bpel:query > queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> > <![CDATA[tns:cardType]]> > </bpel:query> > </bpel:from> > <bpel:to part="parameters" > variable="creditValidatorRequest"> > <bpel:query > queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> > <![CDATA[ns:o_CC_Instance/xsd:str_CardType]]> > </bpel:query> > </bpel:to> > </bpel:copy> > </bpel:assign> > > In you response the payload has a namesmacexmlns:q0="org.booking.travel" > > > in the BPEL copy tns:cardNumber TO ns:o_CC_Instance/xsd:str_CardNumber > where the namespaces match targetNamespace="org.booking.travel" > > > Is this incorrect? > > > I tried XPath validation using > http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm and > > > EXPRESSION q0:o_CC_Instance/q1:str_CardType > > > It picked the element in RED and validated correct > > <q0:o_CC_Instance xmlns:q0="http://checkCredit.apache.org" xmlns:q1=" > http://checkCredit.apache.org/xsd" > > <q1:str_CardNumber>SGDDK</q1:str_CardNumber> > <q1:str_CardType>KSADGKFD</q1:str_CardType> > </q0:o_CC_Instance> > > >>> "Mark Bullathsinghalage Cooray" <[email protected]> > 9/2/2011 4:51 PM >>> > Sorry I think the mail didnt copy content properly > > > Hi, > > > > > I am initializing a request variable in the BPEL process as below. > > > > > > > messageType="ns:validateCreditCardRequest"> > > messageType="ns:validateCreditCardRequest"> > > > > SGDDK > KSADGKFD > > > > > > > > > and I copy the content form the Receive message to invoke operation as > below. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In you response the payload has a namesmacexmlns:q0="org.booking.travel" > > > > > in the BPEL copy tns:cardNumber TO ns:o_CC_Instance/xsd:str_CardNumber > where the namespaces match targetNamespace="org.booking.travel" > > > > > Is this incorrect? > > > > > I tried XPath validation using > http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm and > > > > > EXPRESSION q0:o_CC_Instance/q1:str_CardType > > > > > It picked the element in RED and validated correct > > > > > > SGDDKq1:str_CardNumber> > KSADGKFDq1:str_CardType> > q0:o_CC_Instance> > > > > > > > >>> "Mark Bullathsinghalage Cooray" 02/09/11 4:45 PM >>> > Hi, > > > I am initializing a request variable in the BPEL process as below. > > > > messageType="ns:validateCreditCardRequest"> > > > > SGDDK > KSADGKFD > > > > > > > > > and I copy the content form the Receive message to invoke operation as > below. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In you response the payload has a namesmacexmlns:q0="org.booking.travel" > > > in the BPEL copy tns:cardNumber TO ns:o_CC_Instance/xsd:str_CardNumber > where the namespaces match targetNamespace="org.booking.travel" > > > Is this incorrect? > > > I tried XPath validation using > http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm and > > > EXPRESSION q0:o_CC_Instance/q1:str_CardType > > > It picked the element in RED and validated correct > > > > SGDDKq1:str_CardNumber> > KSADGKFDq1:str_CardType> > q0:o_CC_Instance> > > > > > >>> Denis Weerasiri 02/09/11 3:56 PM >>> > Hi mark, > The error log is > is 15:07:48,421 INFO [ASSIGN] Assignment Fault: { > > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=72,faultExplanation=Noresults > for expression: {OXPath10Expression ns:o_CC_Instance/xsd:str_CardType} > > Can you re-check whether your XPath expression is correct.? > This expression, "ns:o_CC_Instance/xsd:str_CardType" will not work with > following payload. > > > xmlns:q0="org.booking.travel" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > - > - > BHHHHHHHHq0:airline> > > JHFJHFRJFHJFJHFJHFHJq0:arrival> > > HGRFHHJDJHFJFJHFJq0:cardNumber> > > HFKFIIRFOIGJKFHJDJUq0:cardType> > > OUFUKFKMHVJHDUYYKFq0:departure> > > KIYFKFKKKFKFLLLOVLq0:source> > > UFKFKKJFJ,VK,GFLKGq0:target> > > q0:TravelBookingProcessRequest> > soapenv:Body> > soapenv:Envelope> > > > On Fri, Sep 2, 2011 at 10:53 AM, Mark Bullathsinghalage Cooray < > [email protected]> wrote: > > > Hi All, > > > > > > I have created a test web service and when I pass the pay load > > > > > > > > xmlns:q0="org.booking.travel" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > - > > - > > BHHHHHHHHq0:airline> > > > > JHFJHFRJFHJFJHFJHFHJq0:arrival> > > > > HGRFHHJDJHFJFJHFJq0:cardNumber> > > > > HFKFIIRFOIGJKFHJDJUq0:cardType> > > > > OUFUKFKMHVJHDUYYKFq0:departure> > > > > KIYFKFKKKFKFLLLOVLq0:source> > > > > UFKFKKJFJ,VK,GFLKGq0:target> > > > > q0:TravelBookingProcessRequest> > > > > > > soapenv:Body> > > > > > > soapenv:Envelope> > > > > > > > > > > I am getting following error > > > > > > - > http://schemas.xmlsoap.org/soap/envelope/" ( ' > http://schemas.xmlsoap.org/soap/envelope/"' )> > > - > > - > > soapenv:Serverfaultcode> > > > > > http://docs.oasis-open.org/wsbpel/2.0/process/executable > > ">axis2ns3:selectionFailurefaultstring> > > > > > > > > soapenv:Fault> > > > > > > soapenv:Body> > > > > > > soapenv:Envelope> > > > > > > > > > > > > I enabled the Logs and the Logs say Following > > > > > > 15:07:48,335 DEBUG [ODEService] Starting transaction. > > 15:07:48,335 DEBUG [BpelEngineImpl] Routed: svcQname {org.booking.travel > }TravelBookingProcess > > --> [BpelProcess[{org.booking.travel}TravelBookingProcess-6]] > > 15:07:48,337 DEBUG [ODEService] ODE routed to operation Operation: > > name=process > > style=REQUEST_RESPONSE,1 > > Input: name=null > > Message: name={org.booking.travel}TravelBookingProcessRequestMessage > > Part: name=payload > > elementName={org.booking.travel}TravelBookingProcessRequest > > Output: name=null > > Message: name={org.booking.travel}TravelBookingProcessResponseMessage > > Part: name=payload > > elementName={org.booking.travel}TravelBookingProcessResponse from > service > > {org.booking.travel}TravelBookingProcess > > 15:07:48,337 DEBUG [MessageExchangeImpl] SET MEX property isTwoWay = true > > 15:07:48,341 DEBUG [ODEService] Invoking ODE using MEX > > {MyRoleMex#hqejbhcnphr6kabxjpc8t2 [Client hqejbhcnphr6kabxjpc8t1] calling > { > > org.booking.travel}TravelBookingProcess.process(...)} > > 15:07:48,342 DEBUG [ODEService] Message content: > > > > BHHHHHHHH > > JHFJHFRJFHJFJHFJHFHJ > > HGRFHHJDJHFJFJHFJ > > HFKFIIRFOIGJKFHJDJU > > OUFUKFKMHVJHDUYYKF > > KIYFKFKKKFKFLLLOVL > > UFKFKKJFJ,VK,GFLKG > > > > 15:07:48,343 DEBUG [MyRoleMessageExchangeImpl] invoke() EPR= null ==> > > BpelProcess[{org.booking.travel}TravelBookingProcess-6] > > 15:07:48,345 DEBUG [ODEService] Commiting ODE MEX > > {MyRoleMex#hqejbhcnphr6kabxjpc8t2 [Client hqejbhcnphr6kabxjpc8t1] calling > { > > org.booking.travel}TravelBookingProcess.process(...)} > > 15:07:48,345 DEBUG [ODEService] Commiting transaction. > > 15:07:48,372 DEBUG [BpelEngineImpl] handleJobDetails: InvokeInternal > event > > for mexid hqejbhcnphr6kabxjpc8t2 > > 15:07:48,380 DEBUG [BpelProcess] >> handleJobDetails(jobData=JobDetails( > > instanceId: null mexId: hqejbhcnphr6kabxjpc8t2 processId: { > > org.booking.travel}TravelBookingProcess-6 type: INVOKE_INTERNAL channel: > > null correlatorId: null correlationKeySet: null retryCount: null inMem: > > false detailsExt: {})) > > 15:07:48,380 DEBUG [BpelProcess] InvokeInternal event for mexid > > hqejbhcnphr6kabxjpc8t2 > > 15:07:48,393 DEBUG [MessageExchangeImpl] GET MEX property > > org.apache.ode.bpel.myRoleSessionId = null > > 15:07:48,393 DEBUG [MessageExchangeImpl] GET MEX property > > org.apache.ode.bpel.myRoleSessionId = null > > 15:07:48,393 DEBUG [MessageExchangeImpl] GET MEX property > > org.apache.ode.bpel.partnerRoleSessionId = null > > 15:07:48,393 DEBUG [BpelProcess] INPUTMSG: client.process: MSG RCVD > keys=[] > > mySessionId=null partnerSessionId=null > > 15:07:48,397 DEBUG [BpelProcess] INPUTMSG: client.process: routing > failed, > > CREATING NEW INSTANCE > > 15:07:48,402 DEBUG [BpelRuntimeContextImpl] BpelRuntimeContextImpl > created > > for instance 3603. INDEXED STATE={} > > 15:07:48,409 DEBUG [BpelProcess] SELECT: PickResponseChannel#9: USING > > CORRELATOR client.process > > 15:07:48,413 DEBUG [BpelProcess] SELECT: PickResponseChannel#9: CHECKING > > for NEW INSTANCE match > > 15:07:48,413 DEBUG [BpelProcess] INPUTMSGMATCH: Changing process instance > > state from ready to active > > 15:07:48,414 DEBUG [BpelProcess] SELECT: PickResponseChannel#9: FOUND > match > > for NEW instance mexRef={MyRoleMex#hqejbhcnphr6kabxjpc8t2 [Client > > hqejbhcnphr6kabxjpc8t1] calling {org.booking.travel > > }TravelBookingProcess.process(...)} > > 15:07:48,421 INFO [ASSIGN] Assignment Fault: { > > > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=72,faultExplanation=Noresultsfor > expression: {OXPath10Expression > > ns:o_CC_Instance/xsd:str_CardType} > > 15:07:48,436 DEBUG [BpelProcess] ProcessImpl completed with fault '{ > > > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure' > > 15:07:48,439 DEBUG [MessageExchangeContextImpl] Processing an async reply > > from service {org.booking.travel}TravelBookingProcess > > 15:07:48,570 DEBUG [MyRoleMessageExchangeImpl] Received myrole mex > response > > callback > > 15:07:48,571 DEBUG [ODEService] Handling response for MEX > > {MyRoleMex#hqejbhcnphr6kabxjpc8t2 [Client hqejbhcnphr6kabxjpc8t1] calling > { > > org.booking.travel}TravelBookingProcess.process(...)} > > 15:07:48,571 DEBUG [ODEService] Starting transaction. > > 15:07:48,571 DEBUG [MyRoleMessageExchangeImpl] Received myrole mex > response > > callback > > 15:07:48,578 DEBUG [ODEService] Fault response message: { > > > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure > > 15:07:48,580 DEBUG [ODEService] Returning fault: > > soapenv:Serveraxis2ns3:selectionFailure > > 15:07:48,580 DEBUG [MyRoleMessageExchangeImpl] Releasing mex > > hqejbhcnphr6kabxjpc8t2 > > 15:07:48,580 DEBUG [ODEService] Comitting transaction. > > 15:07:48,581 DEBUG [ODEMessageReceiver] Reply for TravelBookingProcess.{ > > org.booking.travel}process > > 15:07:48,582 DEBUG [ODEMessageReceiver] Reply message > > soapenv:Serveraxis2ns3:selectionFailure > > > > > > > > > > Please help me!! > > > > > > > > > > > -- > Thanks, > Denis > ---------------------------------------------------------- > *Denis Weerasiri* > * > * > **** *site: ** > https://sites.google.com/site/ddweerasiri/* > *blog: **http://ddweerasiri.blogspot.com* > * > twitter: **http://twitter.com/ddweerasiri* * > linked-in: **http://lk.linkedin.com/in/ddweerasiri* > > > > > -- ----------------------------------------------------- Regards, Waruna Ranasinghe blog: http://warunapw.blogspot.com twitter: http://twitter.com/warunapww http://lk.linkedin.com/in/waruna www.facebook.com/waruna.ranasinghe
