You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by "ytrewq2002@libero.it" <yt...@libero.it> on 2009/09/25 09:52:28 UTC

(include src.zip for milinda) problem with invoke a esternal web service

ok,
i attached the project 
there is also the wsdl generated by ode, and the wsdl and xsd used for generating the web service invocation.
i used netbeans for call the caller bpel process (the stubs and interface is generated using the wsdl generated by ode)
the HelloWs is under apache tomcat webapps dir.,caller is under webapps/ode/process dir.

if you take a look about the HelloIn problem thank you very much!
bye

Roby

---------- Initial Header -----------

>From      : "Milinda Pathirage" milinda.pathirage@gmail.com
To          : user@ode.apache.org
Cc          : 
Date      : Fri, 25 Sep 2009 08:17:05 +0530
Subject : Re: problem with invoke a esternal web service







> As I understand I think you have initialized the HelloIn in wrong manner
> which is the following or similar way:<hello xmlns="
> http://hello.netbureau.it/">
>               <ns2:name xmlns:wshello="http://hello.netbureau.it/
> ">pippo</ns2:name>
> </hello>
> 
> If you correctly initialized the HelloIn to following:
> 
> <ns2:hello xmlns:ns2="http://hello.netbureau.it/">
>               <name xmlns:wshello="http://hello.netbureau.it/">pippo</name>
> </ns2:hello>
> 
> you'll be able to make it work.
> 
> It's good if you can attach your BPEL. Then we can have a look at it and
> help you.
> 
> Thanks
> Milinda
> 
> On Fri, Sep 25, 2009 at 7:13 AM, Wenfeng ZHAO <zh...@gmail.com> wrote:
> 
> > Hello ytrewq2002\,
> >
> >        I can't understand your problem very well. But as to this, "in ode i
> > can't pass a xpath for HelloIn without specify namespace (ns2) because it
> > give me a selection fault!", I know it isn't true. In ODE, both unqualified
> > tag and qualified tag are allowed in XPath expression. In case of qualified
> > one, the namespace prefix is expanded as defined in the context of the
> > expression. For example:
> >
> > <copy xmlns:ns1="http://example.org">
> >  <from>$msg1.part1/ns1:anElem</from>
> > ... ...
> >
> >
> >
> >
> > Wenfeng
> > =======On 2009-09-24 at 23:13:14 ytrewq2002\ wrote: =======
> >
> > >hi,
> > >
> > >i have to invoke a web service with <invoke> in bpel
> > >i send a string to web service and invoke it :
> > >
> > ><copy>
> > >                <from>$ProcessIn.payload/tns:input</from>
> > >                <to>$HelloIn.parameters/ns2:name</to>
> > >
> > >                </to>
> > >            </copy>
> > >        </assign>
> > >        <invoke name="InvokeHelloname"
> > >        partnerLink="HelloWs"
> > >        operation="hello"
> > >        portType="ns2:Helloname"
> > >        inputVariable="HelloIn"
> > >        outputVariable="HelloOut"/>
> > >
> > >my problem is: the soap message send by ode is
> > >
> > >ASSIGN] ASSIGN Writing variable 'HelloIn' value '<?xml version="1.0"
> > encoding="UTF-8"?>
> > ><message>
> > ><parameters>
> > ><hello xmlns="http://hello.netbureau.it/">
> > >               <ns2:name xmlns:wshello="http://hello.netbureau.it/
> > ">pippo</ns2:name>
> > ></hello></parameters></message>'
> > >
> > >that is different with the soap sending by a JAX-WS invoke that is:
> > >
> > ><ns2:hello xmlns:ns2="http://hello.netbureau.it/">
> > >               <name xmlns:wshello="http://hello.netbureau.it/
> > ">pippo</name>
> > ></hello>
> > >
> > >As you can see the soap have tag name not ns2:name.. but in ode i can't
> > pass a xpath for HelloIn without specify namespace (ns2) because it give me
> > a selection fault!
> > >
> > >SO HOW CAN RESOLVE THIS PROBLEM!!???? web service probably reject the
> > invoke because it can't understand soap message that ode passes to and the
> > name (parameter of web method)was passed as null object!
> > >
> > >
> > >HELP!!!
> > >thank you
> >
> > = = = = = = = = = = = = = = = = = = = =
> > ZHAO Wenfeng (???)
> > Ph.D. Candidate
> > http://www.bupt.edu.cn
> >
> >
> 
> 
> -- 
> Milinda Pathirage
> Senior Software Engineer & Product Manager WSO2 BPS; http://wso2.org/bps
> WSO2 Inc.; http://wso2.com
> E-mail: milinda@wso2.com, milinda.pathirage@gmail.com
> Web: http://mpathirage.com
> Blog: http://blog.mpathirage.com
>