Now, I have another issue: The response of the first WebService is this:
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <authenticateResponse xmlns="http://webservices.authentication.sitra.sardegnait.it"> <authenticateReturn xsi:nil="true"/> <<<<<----------- </authenticateResponse> </soapenv:Body> </soapenv:Envelope> the tag authenticateReturn has a "xsi" namespace; this namespace is correctly previously defined (xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance") After, the ASSIGN (in the BPEL process) turns this response in a Request for the second WebService: <?xml version='1.0' encoding='UTF-8'?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Body> <authorize xmlns="http://webservices.authorization.sitra.sardegnait.it"> <identity xsi:nil="true" /> <<<<<------------ </authorize> </env:Body> </env:Envelope> the tag identity has the same xsi namespace, but it doesn't previously defined. This is the error: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:nil" associated with an element type "identity" is not bound. I Repeat: the BPEL process on Tomcat is ok. MrNinni wrote: > > ok, thanks, now it works correctly. > Your suggestion has been invaluable. > > > gnodet wrote: >> >> See the PingPong example: >> >> http://svn.apache.org/repos/asf/ode/trunk/distro/src/examples-jbi/PingPong/ping/deploy.xml >> >> You just need to specify the service QName and port name and have a >> JBI endpoint that matches those value (service qname + endpoint name). >> >> Or look at the bpel example from smx: >> >> http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/loan-broker-bpel/loan-broker-ode-su/src/main/resources/deploy.xml >> and the corresponding endpoint definitions: >> >> http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/loan-broker-bpel/loan-broker-bean-su/src/main/resources/xbean.xml >> >> On Thu, Feb 26, 2009 at 11:17, MrNinni <[email protected]> wrote: >>> >>> If I make the two http-providers for the two external WebServices, I >>> must >>> recall the http-providers from ODE process. Now, in the ODE Process, the >>> only point where I call the WebService (by IP address, port and path) is >>> in >>> the WebService wsdl. How do I set the ODE Process to go to >>> http-provider, >>> and then exit to the WebService? >>> >>> >>> gnodet wrote: >>>> >>>> If the bpel process calls a service, you need to define a JBI endpoint >>>> for this service. >>>> If you want your process to call a web service, you need to define an >>>> http provider endpoint which will be called by Ode, which will serve >>>> as a proxy to the real web service. >>>> You may also need to change the target service definition called by >>>> Ode to match the jbi endpoint address. You should be able to find an >>>> example in the JBI distribution for Ode. >>>> In JBI, Ode can not really call web services directly. >>>> >>>> On Thu, Feb 26, 2009 at 10:15, MrNinni <[email protected]> wrote: >>>>> >>>>> mmm, sorry, i don't understand very well. >>>>> In ServiceMix I have created one http-consumer, a ODE component and a >>>>> ServiceAssembly. >>>>> What i must do yet? What are the JBI endpoints? >>>>> thank you very much for the fast answer! >>>>> >>>>> >>>>> gnodet wrote: >>>>>> >>>>>> IIRC, when deployed in JBI, ODE does not call web services directly. >>>>>> Instead it always send a JBI exchange to a target JBI endpoint. >>>>>> So in order to use Ode in ServiceMix, you need to define the needed >>>>>> JBI endpoints, which can very well be a proxy to an external web >>>>>> service. >>>>>> >>>>>> On Thu, Feb 26, 2009 at 09:58, MrNinni <[email protected]> wrote: >>>>>>> >>>>>>> Hello! >>>>>>> Sorry for my bad english. >>>>>>> I created an ODE process: one client calls one webservice; the first >>>>>>> webservice's response goes at the second webservice, and finally the >>>>>>> second >>>>>>> response goes back at the client. >>>>>>> The bpel file is OK, the ODE process on Tomcat function correctly >>>>>>> If i try to deploy the same ODE process on ServiceMix, it response >>>>>>> with >>>>>>> an >>>>>>> error. >>>>>>> >>>>>>> Could not find route for exchange: InOut[ id: >>>>>>> ID:172.30.253.78-11fb1af979f-11:0 status: Active role: provider >>>>>>> service: >>>>>>> {http://sardegnait.it/AA}AA operation: {http://sardegnait.it/AA}AA >>>>>>> in: >>>>>>> ... >>>>>>> next there are the XML message >>>>>>> >>>>>>> 172.30.253.78 is my IP address. >>>>>>> >>>>>>> What must change between the two applications (ODE on Tomcat and ODE >>>>>>> on >>>>>>> ServiceMix)? Are there some configurations that I must change for >>>>>>> deploy >>>>>>> an >>>>>>> ODE process on Servicemix? >>>>>>> >>>>>>> Thanks. >>>>>>> -- >>>>>>> View this message in context: >>>>>>> http://www.nabble.com/ODE-on-ServiceMix-tp22219846p22219846.html >>>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Guillaume Nodet >>>>>> ------------------------ >>>>>> Blog: http://gnodet.blogspot.com/ >>>>>> ------------------------ >>>>>> Open Source SOA >>>>>> http://fusesource.com >>>>>> >>>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/ODE-on-ServiceMix-tp22219846p22220333.html >>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Guillaume Nodet >>>> ------------------------ >>>> Blog: http://gnodet.blogspot.com/ >>>> ------------------------ >>>> Open Source SOA >>>> http://fusesource.com >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/ODE-on-ServiceMix-tp22219846p22221286.html >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Cheers, >> Guillaume Nodet >> ------------------------ >> Blog: http://gnodet.blogspot.com/ >> ------------------------ >> Open Source SOA >> http://fusesource.com >> >> > > -- View this message in context: http://www.nabble.com/ODE-on-ServiceMix-tp22219846p22243015.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
