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 <[email protected]> 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: [email protected], [email protected] Web: http://mpathirage.com Blog: http://blog.mpathirage.com
