[Users] BPEL assign, losing root element attributes
ttramb
petals-use at ebmwebsourcing.com
Wed Mar 16 10:25:44 CET 2011
Hi,
I have made a bpel process which calling a webservice in a
document/literal style which handle NewsMLG2 files.
I made a SA with a file transfert which take newsMLG2 files in a pooling
folder and as consumer a bpel process.
The bpel process receive a NewsMLG2 files and invoke a webservice to
process the NewsMLG2 File. For this invocation, I must assign the receive
variable to the webservice request message variable. The result is I lose
every attributes of the root element during the assignment !! All child
elements are well copy.
I don't understand why I have this behavior. If someone can help me it
will be welcome.
see below :
BPEL extract :
<bpel:variable name="input"
messageType="tns:NewsMLG2StoreProcessRequestMessage"/>
<bpel:variable name="newsMLStoreRequest" messageType="ns1:storeNewsItem" />
...
<bpel:receive name="receiveInput" partnerLink="client"
createInstance="yes" operation="storeToRepository"
portType="tns:NewsMLG2StoreProcess" variable="input" />
<bpel:assign>
<bpel:copy>
<bpel:from part="payload" variable="input"/>
<bpel:to part="newsItem" variable="newsMLStoreRequest"/>
</bpel:copy>
</bpel:assign>
<bpel:invoke name="StoreNewsMLG2Service" partnerLink="NewsMLStorePL"
operation="storeNewsItem" portType="ns1:StoreNewsMLG2Interface"
inputVariable="newsMLStoreRequest" outputVariable="NewsMLStorePLResponse"
/>
WSDL extracts:
BPEL WS
<wsdl:message name="NewsMLG2StoreProcessRequestMessage">
<wsdl:part xmlns:news="http://iptc.org/std/nar/2006-10-01/"
element="news:newsItem" name="payload" />
</wsdl:message>
1st WS
<wsdl:message name="storeNewsItem">
<wsdl:part xmlns:ns1="http://iptc.org/std/nar/2006-10-01/"
name="newsItem" element="ns1:newsItem" />
</wsdl:message>
Messages show from the WebConsole.
Message from filetransfert component :
<newsItem xmlns="http://iptc.org/std/nar/2006-10-01/"
standardversion="2.1" standard="NewsML-G2"
guid="tag:afp.com,1998:TX-SGE:19980103T031928Z:ADA23:1" version="1">
...
</newsItem>
Message from orchestra engine to the first web service :
<newsItem xmlns="http://iptc.org/std/nar/2006-10-01/">
...
</newsItem>
regards,
Bertrand
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=356#356
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/90e86a22/attachment.htm>
More information about the Users
mailing list