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