| Author |
Call .net method ( web service) from orchestration expression shap
|
|
|
| I am calling a web service from the orchestration expression shape. I can
call the .net call but I don't how to pass the XML message from the
orchestration to the .net class. Can some one help me with an example.
--
Thanks
Ravi
| |
| Jon Flanders[MVP] 2005-08-29, 5:56 pm |
| Declare a variable of the .NET type in the Orchestration Viewer. Then in an
expression assign the Message to the .NET type. The Orchestration compiler
will generate code that will deserialize the xml into your .NET type (or you
can write that code by hand).
--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/
"Ravi" <Ravi@discussions.microsoft.com> wrote in message
news:2ECBAD01-83CA-4B25-B7F7-4B80D0773076@microsoft.com...
>I am calling a web service from the orchestration expression shape. I can
> call the .net call but I don't how to pass the XML message from the
> orchestration to the .net class. Can some one help me with an example.
> --
> Thanks
> Ravi
| |
| David Browne 2005-08-29, 5:56 pm |
| Or just pass the message into a method as a System.Xml.XmlDocument.
David
"Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
news:OKYoyoLrFHA.3812@TK2MSFTNGP10.phx.gbl...
> Declare a variable of the .NET type in the Orchestration Viewer. Then in
> an expression assign the Message to the .NET type. The Orchestration
> compiler will generate code that will deserialize the xml into your .NET
> type (or you can write that code by hand).
>
> --
> Jon Flanders
> http://www.masteringbiztalk.com/blogs/jon/
>
> "Ravi" <Ravi@discussions.microsoft.com> wrote in message
> news:2ECBAD01-83CA-4B25-B7F7-4B80D0773076@microsoft.com...
>
>
| |
| Jon Flanders[MVP] 2005-08-29, 5:56 pm |
| But that only works if the Proxy class is expecting an XmlDocument - right?
--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/
"David Browne" <davidbaxterbrowne no potted meat@hotmail.com> wrote in
message news:e0Y9jANrFHA.464@TK2MSFTNGP15.phx.gbl...
> Or just pass the message into a method as a System.Xml.XmlDocument.
>
> David
>
> "Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
> news:OKYoyoLrFHA.3812@TK2MSFTNGP10.phx.gbl...
>
>
| |
| David Browne 2005-08-29, 5:56 pm |
|
"Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
news:O$xjmRNrFHA.2768@TK2MSFTNGP12.phx.gbl...
> But that only works if the Proxy class is expecting an XmlDocument -
> right?
>
> --
Yes. I typically create a helper method which accepts XmlDocument just to
get into .NET code. From there I find it easier to extract data from the
message and call the real .NET method.
David
|
|
|
|