BizTalk Server Orchestration - How to build messages with a custom .NET class

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > February 2005 > How to build messages with a custom .NET class





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 How to build messages with a custom .NET class
Michel Prévost

2005-02-21, 5:52 pm

Hello all

I have to build a message using a custom .NET class. I have tried using a
method returning XmlDocument, but I have an error stating that the
XmlDocument class is not serializable.

What is the best way to do it?

Thank you
Michel


Benny Mathew

2005-02-21, 8:48 pm

Hi,
Make your custom .net class itself your message as follows:
1. Make your class serializable
2. Add a reference to Microsoft.XLANGs.BaseTypes;
3. apply attribute [DistinguishedFieldAttribute] to the properties of the
class which you want to promote

Cheers
Benny


"Michel Prévost" <michel.prevost_TAKEOUTTHISPART@cactuscommerce.com> wrote
in message news:eXwAQ8GGFHA.348@TK2MSFTNGP09.phx.gbl...
> Hello all
>
> I have to build a message using a custom .NET class. I have tried using a
> method returning XmlDocument, but I have an error stating that the
> XmlDocument class is not serializable.
>
> What is the best way to do it?
>
> Thank you
> Michel
>
>



Alan Smith

2005-02-22, 2:46 am

Hi,

There's a good example here:

ms-help://BTS_2004/SDK/htm/ebiz_prog_orch_guxr.htm

Use a static (chared in VB.net) method to return the message, you then avoid
having to create an istance of the class.

Regards,

Alan


"Michel Prévost" wrote:

> Hello all
>
> I have to build a message using a custom .NET class. I have tried using a
> method returning XmlDocument, but I have an error stating that the
> XmlDocument class is not serializable.
>
> What is the best way to do it?
>
> Thank you
> Michel
>
>
>

Michel Prévost

2005-02-22, 5:50 pm

The problem was the use of a concrete class, via an orchestration variable.
I switched to using a static method and it worked.

thank you
Michel

"Alan Smith" <AlanSmith@discussions.microsoft.com> wrote in message
news:86B61E0C-7923-4485-8052-029BCACA17B3@microsoft.com...[vbcol=seagreen]
> Hi,
>
> There's a good example here:
>
> ms-help://BTS_2004/SDK/htm/ebiz_prog_orch_guxr.htm
>
> Use a static (chared in VB.net) method to return the message, you then
> avoid
> having to create an istance of the class.
>
> Regards,
>
> Alan
>
>
> "Michel Prévost" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com