Hi.... I know that the purpose of the user mailist is to ask for hints of how to solve a problem o what one is doing wrong, but I'd like to ask for instructions of how to solve my problem.
I have red a lot of thread from this list that where having quite the same problem involving the selection:failure error, but at the end users claim to have solved their problem without even posting the solution. I also have red ODE FAQ (as Tammo van Lessen always urge to do) and I understand the problem, but I just don know how to solve it. I know I'm quite newbie to XML, WSDL and BPEL, but in this case I've tried an red a lot, but it just seem that I've ran out of ideas. So please can somebody tell me what It must be done? .... I really need it. 2012/11/13 Dago Pacheco <[email protected]>: > Hi everybody.... I'd like you to help me out a little bit. > > I'm building a test BPEL process which invoke a REST webservice. The > process it's quite simple, it receive an input parameter which is > assigned to the webservice input message and it response is assigned > to the BPEL process output message. The invocation is done using a > WSDL file enriched with ODE WSDL1.1 Extensions for REST. You can > check the BPEL file in [1] and the "RESTful" WSDL in [2]. The REST > webservice reply a XML file describing a simple client entity (as > shown in [3]). > The invocation is done and it gets the response correctly. This is > the server log for that event: > > 23:53:36,948 DEBUG [ExternalService] Executing HTTP Request : GET > http://localhost:8182/TiendaOnline/clientes/12345678 > 23:53:36,948 DEBUG [ExternalService] HTTP Request Details: > GET http://localhost:8182/TiendaOnline/clientes/12345678 > Request Headers: > Accept: application/xml > 23:53:36,957 DEBUG [ExternalService] Received response for MEX > hqejbhcnphr7r4u5i67n4p > 23:53:36,958 DEBUG [ExternalService] HTTP Response Details: > GET http://localhost:8182/TiendaOnline/clientes/12345678 > Status-Line: HTTP/1.1 200 OK > Response Headers: > Date: Tue, 13 Nov 2012 02:53:36 GMT > Accept-Ranges: bytes > Server: Restlet-Framework/2.0.13 > Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept > Content-Length: 169 > Content-Type: application/xml; charset=UTF-8 > Response Entity: > <?xml version="1.0"?><tns:CLIENTE > xmlns:tns="http://cliente.tiendaonline.restws"><tns:idCliente>12345678</tns:idCliente><tns:descuento>0.56</tns:descuento></tns:CLIENTE> > > > After the XML is recived, extra elements are added, as shown in the server log > > 23:53:36,990 DEBUG [MessageDAOImpl] setData null <?xml version="1.0" > encoding="UTF-8"?> > <message><CLIENTE><tns:CLIENTE > xmlns:tns="http://cliente.tiendaonline.restws"><tns:idCliente>12345678</tns:idCliente><tns:descuento>0.56</tns:descuento></tns:CLIENTE></CLIENTE></message> > > The problem comes when the webservice response is assigned to bpel > process tns:result variable...Ii get this error log > > 23:53:37,129 DEBUG [ASSIGN] Evaluating FROM expression "{VarRef > {Variable > __PROCESS_SCOPE:CompraOnline-restfull.RWS_ClientePLResponse:OMessageVarType#14({http://cliente.tiendaonline.restws}clienteResponse)}.CLIENTE{OXPath10Expression > descuento}}". > 23:53:37,130 INFO [ASSIGN] Assignment Fault: > {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=162,faultExplanation=No > results for expression: {OXPath10Expression descuento} > > I understand that this mean that that the XPath expression failed to > get a result, and as for the ode-user mailist thread in [4] I know > that this must be a xmlns problem, but I don't know what I'm doing > wrong. > Please, if somebody can give a hint of what I should do, it would be grate. > > Thanks > > > [1] http://pastebin.com/875Y9RsP > [2] http://pastebin.com/ysv6kFj6 > [3] http://pastebin.com/SYfM94Tv > [4] http://comments.gmane.org/gmane.comp.apache.ode.user/4025
