BizTalk Server Orchestration - Passing MultiPart Message Type As Paramter to .NET Component

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > July 2004 > Passing MultiPart Message Type As Paramter to .NET Component





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 Passing MultiPart Message Type As Paramter to .NET Component
Shar

2004-07-14, 2:46 am

Hi All,

How can we Pass Multipart Message as input parameter to a .Net Component(Expects Xml Doc) in an orchestration

..Net Component-Method

Method(XmlDocument xdoc)
{

}
-Multipart Message type is required to call Business Rules

Thanks
Kevin J Mackey

2004-07-14, 5:50 pm

The following has worked for me...

using Microsoft.XLANGs.BaseTypes;

Method(XLANGMessage _inputMessage)
{
XLANGPart somePart = _inputMessage["part name"];
XmlDocument xmlDoc = (XmlDocument) somePart.RetrieveAs(typeof(XmlDocument));
}

--
KjM


"Shar" wrote:

> Hi All,
>
> How can we Pass Multipart Message as input parameter to a .Net Component(Expects Xml Doc) in an orchestration
>
> .Net Component-Method
>
> Method(XmlDocument xdoc)
> {
>
> }
> -Multipart Message type is required to call Business Rules
>
> Thanks

Tomms

2004-07-14, 5:50 pm

Thanks Kjm,

What Does "part name" refers to..
My XML Message or Message_part Type is
<Person>
<First></First>
<Last></Last>
<Address>
<Apt></Apt>
<City></City>
<State></State>
<Address>
<Person>

I need to get(Modify) Inner Text of the elements and set it to some value


Thanks,

XLANGPart and part name

2004-07-27, 5:53 pm

I do not understand the "part name". Should this be the name og the XML-schema?
I have tried a number of names using the tags in my XML, but keep getting the error: The XLANG/s message 'xxxxx' has no part named 'yyyy'.
Thank you for answering.
Regards Berit


"Kevin J Mackey" wrote:
[vbcol=seagreen]
> The following has worked for me...
>
> using Microsoft.XLANGs.BaseTypes;
>
> Method(XLANGMessage _inputMessage)
> {
> XLANGPart somePart = _inputMessage["part name"];
> XmlDocument xmlDoc = (XmlDocument) somePart.RetrieveAs(typeof(XmlDocument));
> }
>
> --
> KjM
>
>
> "Shar" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com