|
Home > Archive > BizTalk Server Orchestration > February 2005 > how to address distinguished field street-number
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 |
how to address distinguished field street-number
|
|
| Frans van der Geer 2005-02-14, 2:47 am |
| How can I address a distinguished field in an expression shape that has a
dash in the name? Example: msg.street-number.
The expression shape does not accept this name, while I have been able to
make this a distinguished field.
Regards,
Frans
| |
| Stephen W. Thomas 2005-02-16, 2:47 am |
| Hello.
If you are having problem you might want to try making it a Promoted
Property so you can name the value anything you want and access it like:
message(PropertySchem.name).
Or, maybe try using xPath to query into the message. This post might help
you out with the xPath:
http://www.geekswithblogs.net/sthom...0/25/13269.aspx
Hope this helps.
Stephen W. Thomas
http://www.geekswithblogs.net/sthomas
"Frans van der Geer" wrote:
> How can I address a distinguished field in an expression shape that has a
> dash in the name? Example: msg.street-number.
> The expression shape does not accept this name, while I have been able to
> make this a distinguished field.
>
> Regards,
>
> Frans
| |
| ramani viswanathan 2005-02-16, 5:50 pm |
| I tried xpath to update one of the attributes by specifying like xpath(msg,
//b[@uom] ) = "test", biztalk throws error saying No node selected. Looks
like only elements can be updated and not attributes within orchestration. Is
this true?
Thanks
Ramani
"Stephen W. Thomas" wrote:
[vbcol=seagreen]
> Hello.
>
> If you are having problem you might want to try making it a Promoted
> Property so you can name the value anything you want and access it like:
> message(PropertySchem.name).
>
> Or, maybe try using xPath to query into the message. This post might help
> you out with the xPath:
> http://www.geekswithblogs.net/sthom...0/25/13269.aspx
>
> Hope this helps.
>
> Stephen W. Thomas
> http://www.geekswithblogs.net/sthomas
>
>
> "Frans van der Geer" wrote:
>
| |
| Stephen W. Thomas 2005-02-16, 5:50 pm |
| Hello.
As far as I know, you can use XPath to assign to Attributes. But, I think
the Attributes have to exist in the document. Also, you have to copy the
message to a new message (since you are changing the data) and be working
inside a Construct shape.
One other option, if the attributes do not exist, is to copy the XLang
message to an XML Document and append the attributes. Like this:
// Make and load xDoc
xDoc = new System.Xml.XmlDocument();
xDoc.LoadXml(extractBatchDataOutput);
// set attributes
xDoc.DocumentElement.SetAttribute("Data", “Value”);
// Set back to XLang Message
outMessage = xDoc;
Hope this helps.
Stephen W. Thomas
http://www.geekswithblogs.net/sthomas
"ramani viswanathan" wrote:
[vbcol=seagreen]
> I tried xpath to update one of the attributes by specifying like xpath(msg,
> //b[@uom] ) = "test", biztalk throws error saying No node selected. Looks
> like only elements can be updated and not attributes within orchestration. Is
> this true?
>
> Thanks
> Ramani
>
> "Stephen W. Thomas" wrote:
>
|
|
|
|
|