invoke c# classes from orchestrations
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > invoke c# classes from orchestrations




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    invoke c# classes from orchestrations  
Raj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-04 10:53 PM

Hi,
How do I allow my orchestration to pass the incoming message to another c# c
lass which is part of the project?
None of the items under biztalk orchestration allows me to do that!
:-(
Raj





[ Post a follow-up to this message ]



    Re: invoke c# classes from orchestrations  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-04 10: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







[ Post a follow-up to this message ]



    Re: invoke c# classes from orchestrations  
Raj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-04 10:53 PM

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? 
>
>
>





[ Post a follow-up to this message ]



    Re: invoke c# classes from orchestrations  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-04 10: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] 







[ Post a follow-up to this message ]



    Re: invoke c# classes from orchestrations  
Bill Chesnut


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-04 12:50 PM

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register