| Author |
invoke c# classes from orchestrations
|
|
|
| Hi,
How do I allow my orchestration to pass the incoming message to another c# class which is part of the project?
None of the items under biztalk orchestration allows me to do that!
:-(
Raj
| |
| Matt Milner 2004-07-27, 5:53 pm |
| use the expression shape. you'll need to declare a variable in the
orhcestration view window that is the type of your class. Then in the
expression create a new instance and call your method.
Matt
"Raj" <Raj@discussions.microsoft.com> wrote in message
news:C681E0AF-384F-4964-8474-AA69AAD4411D@microsoft.com...
> Hi,
> How do I allow my orchestration to pass the incoming message to another c#
class which is part of the project?
> None of the items under biztalk orchestration allows me to do that!
> :-(
> Raj
| |
|
| Thanks Matt!
But how do i call orchestrations from c# code?Is there any method available for it?
Thanks
Raj
"Matt Milner" wrote:
> use the expression shape. you'll need to declare a variable in the
> orhcestration view window that is the type of your class. Then in the
> expression create a new instance and call your method.
>
> Matt
>
>
> "Raj" <Raj@discussions.microsoft.com> wrote in message
> news:C681E0AF-384F-4964-8474-AA69AAD4411D@microsoft.com...
> class which is part of the project?
>
>
>
| |
| Matt Milner 2004-07-27, 5:53 pm |
| There is a sample in the SDK for direct submit that shows how to submit a
message to biztalk directly, but your best option is to expose your
orchestration as a web service. It requires the least amount of work and
integrates nicely in both C# and BizTalk.
matt
"Raj" <Raj@discussions.microsoft.com> wrote in message
news:8A12F34D-197B-4FEA-9E42-75DBFAD613DC@microsoft.com...
> Thanks Matt!
> But how do i call orchestrations from c# code?Is there any method
available for it?[vbcol=seagreen]
> Thanks
> Raj
>
> "Matt Milner" wrote:
>
another c#[vbcol=seagreen]
| |
| Bill Chesnut 2004-07-29, 7:50 am |
| Raj,
There are 2 parts to your question:
how to call a C# class from inside of an orchestration, see the methodcall
sample in the sdk
C:\Program Files\Microsoft BizTalk Server
2004\SDK\Samples\Orchestrations\MethodCa
ll
how to pass the incoming message to that is:
create a variable in the orchestration view window of type
System.Xml.XmlDocument
create a variable in the orchestration view window of type System.String
then use the code below
xmlDoc = (System.Xml.XmlDocument) MessageIn;
strDoc = xmlDoc.OuterXml;
you now have the xml document in a string that you can pass to your C#
method.
Bill Chesnut
BizTalk MVP
"Raj" <Raj@discussions.microsoft.com> wrote in message
news:C681E0AF-384F-4964-8474-AA69AAD4411D@microsoft.com...
> Hi,
> How do I allow my orchestration to pass the incoming message to another c#
class which is part of the project?
> None of the items under biztalk orchestration allows me to do that!
> :-(
> Raj
|
|
|
|