|
Home > Archive > BizTalk Server Orchestration > March 2005 > Problem passing params to called DLL
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 |
Problem passing params to called DLL
|
|
| Fabio Brolese 2005-03-21, 7:47 am |
| I've made my DLL, referenced in Orchestration, generated from an XSD the
corresponding class.
Now I've got a message with type foo.xsd, the method of my DLL accept a
params of type foo.cs. When I compile the error I find is:
cannot convert from 'System.Xml.XmlDocument' to 'namespace.foo'.
So, the message is an XmlDocument with the foo.xsd specification, but how
can I do to macth with the params of my method in my DLL?
TIA
Fabio
| |
| Scott Colestock 2005-03-21, 8:46 pm |
| It sounds like you need to either a) use your .NET type as the message type
in your orchestration (rather than using an XSD type) or b) have your method
signature on your component accept an XLANGMessage, and use the RetrieveAs
method, as in
public static void MyMethod(XLANGMessage msg)
{
MyClass myClass = msg[0].RetrieveAs(typeof(MyClass));
}
Scott Colestock
www.traceofthought.net
"Fabio Brolese" <FabioBrolese@discussions.microsoft.com> wrote in message
news:A797B78A-8C03-49C9-8078-213059E26214@microsoft.com...
> I've made my DLL, referenced in Orchestration, generated from an XSD the
> corresponding class.
>
> Now I've got a message with type foo.xsd, the method of my DLL accept a
> params of type foo.cs. When I compile the error I find is:
> cannot convert from 'System.Xml.XmlDocument' to 'namespace.foo'.
>
> So, the message is an XmlDocument with the foo.xsd specification, but how
> can I do to macth with the params of my method in my DLL?
>
> TIA
>
> Fabio
>
|
|
|
|
|