|
Home > Archive > BizTalk Server Orchestration > May 2005 > Quick Question Using XPath within Orchestration
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Quick Question Using XPath within Orchestration
|
|
| JGaska [http://www.IoniaSolutions.com] 2005-05-26, 5:54 pm |
|
Lets say I have message A which contains a node "ChildMessage", if I create
a node of a message of type "ChildMessage" can I replace the node in message
A with the new value. Basically, I want to use XPath to set the entire node
value within the message.
Exmple:
xpath(Message.MessagePart, "//MyXPath/To/The/Node[0]") = ChildMessage
Long story with why, here is the short of it. I am using a looping
structure to loop through the child nodes and call a webservice, the
webservice returns a document. I need to map the result of the webservice
into the current node within the looping structure. I have 2 options.
1.) Directy use xpath to set all values within an expression using fully
qualified paths to the elements within the parent document. (I do not like
it but I know I could do this)
2.) Grab the Node create a copy into a message of the same type of the
child, map the result from the webservice using a map. Take the result and
assign new message into the parent node on the current index. This would be
the most elegant solution..
| |
| PCTC_IT 2005-05-27, 5:50 pm |
| Check this link and see if it helps.
http://msdn.microsoft.com/library/d...g_orch_doho.asp
"JGaska [http://www.IoniaSolutions.com]" wrote:
>
> Lets say I have message A which contains a node "ChildMessage", if I create
> a node of a message of type "ChildMessage" can I replace the node in message
> A with the new value. Basically, I want to use XPath to set the entire node
> value within the message.
>
> Exmple:
>
> xpath(Message.MessagePart, "//MyXPath/To/The/Node[0]") = ChildMessage
>
> Long story with why, here is the short of it. I am using a looping
> structure to loop through the child nodes and call a webservice, the
> webservice returns a document. I need to map the result of the webservice
> into the current node within the looping structure. I have 2 options.
>
> 1.) Directy use xpath to set all values within an expression using fully
> qualified paths to the elements within the parent document. (I do not like
> it but I know I could do this)
>
> 2.) Grab the Node create a copy into a message of the same type of the
> child, map the result from the webservice using a map. Take the result and
> assign new message into the parent node on the current index. This would be
> the most elegant solution..
| |
|
|
|
|
|