|
Home > Archive > BizTalk Server > February 2006 > BizTalk 2004 and executing a .NET class object from Biztalk 2004
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 |
BizTalk 2004 and executing a .NET class object from Biztalk 2004
|
|
|
| Hello,
Does anyone know how to execute a dll/executable from BizTalk 2004? I would
like to implement BizTalk 2004 to execute a class object maybe in the
Orchestration unless someone else has a better suggestion. Also are there
any examples that you know of?
Your help is greatly appreciated.
--
mj
| |
| Greg Forsythe 2006-02-17, 10:50 pm |
| If you wish to use you own .NET class within an orchestration you can:call
it from an Expression or MessageAssignment shape.
e.g.
variable1 = YourNamespace.YourClass.YourStaticMethod(parameter);
or if you want an instance of your class, you can declare a variable of type
YourNamespace.YourClass.
If you set Use Default Constructor = true, the compiler will add
"yourvariable = new YourNamespace.YourClass()"
otherwise you will need to construct the class yourself.
e.g. yourvariable = new YourNamespace.YourClass(paranmeter)
If you create an instance it should be Serializable, so the orchestration
can be persisted to the database. If it is not Serializable you can only
declare and use it within an atomic scope.
The assembly containing your class needs to be in the GAC. and you need to
add a reference in your Biztalk project.
If you wish to use unmanaged code, the you will need to wrap it in a .NET
assembly.
You can also write your own:
1. Adapters - for interfaces to proprietary system
2. Pipeline components - for message manipulation in a pipeline
3. Functoids for custom actions within a XSL Transform.
The choice is dependent on what you are trying to do. There are lots of
examples on http://www.GotDotNet.com
Greg
"mj" <mj@newsgroup.nospam> wrote in message
news:71FADFB3-500F-49DB-834D-98F569F911A3@microsoft.com...
> Hello,
>
> Does anyone know how to execute a dll/executable from BizTalk 2004? I
> would
> like to implement BizTalk 2004 to execute a class object maybe in the
> Orchestration unless someone else has a better suggestion. Also are there
> any examples that you know of?
>
> Your help is greatly appreciated.
> --
> mj
| |
| WenJun Zhang[msft] 2006-02-17, 10:50 pm |
| Yes, we can utilize .net classes in Expression shape directly:
Using Expressions to Create Objects and Call Object Methods
http://msdn.microsoft.com/library/d...-us/sdk/htm/ebi
z_prog_orch_btam.asp
Have a nice day.
Best regards,
WenJun Zhang
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
|
|
|