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