Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Orchestration Message with Message Type == ‘.Net class’
- This topic has 3 replies, 1 voice, and was last updated 9 years, 5 months ago by
community-content.
-
AuthorPosts
-
-
July 9, 2006 at 2:35 AM #14998
Messages are made of two parts, a message context and a stream.
Although you have defined your messages using .Net objects those objects are not deserialized from the message. You will receive an Xml serialization of that object in the data stream of the message – in fact the Xml that was posted to the web service.
If you wish to access this data using your object you will need to deserialize this inside the orchestration and serialize it if you wish to send it anywhere.
-
August 8, 2006 at 1:35 AM #14999
The easiest way is to let Biztalk do it for you:
Create a message using your .Net class – Message1
Create a variable using the same class – variable1Receive the message.
In an expression shape:
variable1 = Message1;
This will deserialize the message into an object.In a message assignment shape:
Message2 = variable1;
This will serialize the object into a message.Alternatively you could pass the message to an external .Net class and use the XmlSerializer to do this.
-
July 7, 2006 at 12:06 PM #15000
Hi 😀
I’m having some issues getting started with what seems to be basic BizTalk 2006. BizTalk doesn’t seem to like the XSD’s I’ve been supplied with so I’m hoping to type message objects within orchestrations using .net classes.
I’ve generated classes from an xsd, then created a class library with the classes and used this within an orchestration to receive a message typed as one of these classes. If I send an xml message (which conforms to the xsd used to generate the classes) to the web service around the orchestration, should this be deserialized into the Message object received using a receive shape?
or do I need to write a custom pipeline component to deserialize the incoming xml message and replace it with the deserialized .net object? 🙁
Regards,
Lee.
-
-
-
August 7, 2006 at 6:37 PM #14997
Hi greg.forsythe,
You said \”If you wish to access this data using your object you will need to deserialize this inside the orchestration and serialize it if you wish to send it anywhere.\”
Could you elaborate of how to accomplish that?
Thank you.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.