|
Home > Archive > BizTalk Server Orchestration > July 2004 > Get xml value from Biztalk orchestration message
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 |
Get xml value from Biztalk orchestration message
|
|
|
| Hi,
how can i estract a value from xml message stored into a biztalk
message?
I've tried with a expression scope with the following code:
variable_1 = xpath(Message_1,"/*[local-name()='RootNode' and
namespace-uri()='http://My_Project.Schema1']/*[local-name()='Node1'
and namespace-uri()='http://My_Project.OTA_Schema1]/*[local-name()='Node2'
and namespace-uri()='http://My_Project.OTA_Schema1]/@*[local-name()='Attribute1'
and namespace-uri()='']");
But if i debug with HAT variable_1 is empty.
Why?
Tnk Luca
| |
| Tatyana Yakushev [MSFT] 2004-07-29, 5:50 pm |
| I don't know if your approach should work or not.
I just want to say that it may be better to promote the field as distinguished field, then it will be easily accessibly in orchestration and you don't have to hard-code the
XPath.
(There are 2 ways to promote field: as property field and as distinguished field. Property field is accessible from most biztalk parts and can be used for correlation, routing
etc. Distinguished field are similar to property field but it is accessibly only from orchestration and can not be used in correlation, routing etc)
Thanks,
Tatyana
--------------------
>From: prollo@libero.it (Luca)
>Newsgroups: microsoft.public.biztalk.orchestration
>Subject: Get xml value from Biztalk orchestration message
>Date: 29 Jul 2004 08:53:28 -0700
>Organization: http://groups.google.com
>Lines: 14
>Message-ID: <3d9f225e.0407290753.bab3a@posting.google.com>
>NNTP-Posting-Host: 80.116.219.49
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1091116408 3486 127.0.0.1 (29 Jul 2004 15:53:28 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Thu, 29 Jul 2004 15:53:28 +0000 (UTC)
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!fr.ip.ndsoftware.net!
proxad.net!postnews2.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.orchestration:7450
>X-Tomcat-NG: microsoft.public.biztalk.orchestration
>
>Hi,
>how can i estract a value from xml message stored into a biztalk
>message?
>I've tried with a expression scope with the following code:
>variable_1 = xpath(Message_1,"/*[local-name()='RootNode' and
>namespace-uri()='http://My_Project.Schema1']/*[local-name()='Node1'
>and namespace-uri()='http://My_Project.OTA_Schema1]/*[local-name()='Node2'
>and namespace-uri()='http://My_Project.OTA_Schema1]/@*[local-name()='Attribute1'
>and namespace-uri()='']");
>
>But if i debug with HAT variable_1 is empty.
>Why?
>
>Tnk Luca
>
--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
|
|
|
|
|