BizTalk Server General - How to pass class object as message ???

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > April 2006 > How to pass class object as message ???





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 pass class object as message ???
killbill

2006-04-10, 7:34 pm

Hi All,

I am facing a problem and cant get out of it.

I have created a class for a chema using XSD.EXE command. Once data is
loaded in that class's object then is it possible to pass that object
to receive shape where the same xsd is specified from which that class
is generated ???

Any suggestion to do that ?

Thanks

Eric Stott

2006-04-10, 7:34 pm

Is the xsd.exe creating a physical file, or can you retrieve the data from
xsd.exe thru a call. If it is the latter, then you would want to do this via
a message assignment. If it creates a physical file, then you will have to
use the default xml pipeline and recieve it in through a port and then the
orchestration will use the recieve shape.
Eric
http://stottcreations.com/blog

"killbill" <indus.vision@gmail.com> wrote in message
news:1144272173.470935.144990@e56g2000cwe.googlegroups.com...
> Hi All,
>
> I am facing a problem and cant get out of it.
>
> I have created a class for a chema using XSD.EXE command. Once data is
> loaded in that class's object then is it possible to pass that object
> to receive shape where the same xsd is specified from which that class
> is generated ???
>
> Any suggestion to do that ?
>
> Thanks
>



Greg Forsythe

2006-04-10, 7:34 pm

How about using a web service.
Publish the schema or orchestration from Biztalk as a Web Service.
Add a Web Reference to your .Net project (the message class is created for
you, you do not need XSD.EXE)
Create an instance of the class, populate the data and call the Web Service.

Greg

"killbill" <indus.vision@gmail.com> wrote in message
news:1144272173.470935.144990@e56g2000cwe.googlegroups.com...
> Hi All,
>
> I am facing a problem and cant get out of it.
>
> I have created a class for a chema using XSD.EXE command. Once data is
> loaded in that class's object then is it possible to pass that object
> to receive shape where the same xsd is specified from which that class
> is generated ???
>
> Any suggestion to do that ?
>
> Thanks
>



killbill

2006-04-10, 7:34 pm

Hi,
thanks for response.

Actually i have created that class at VS 2005 Command prompt. Its a
physical class and i am trying to use that class to fill data from
database into my complex message. Once that data will be filled into
that object then can i assign that object to a message in orchestration
???

lets say:
msg is type of abc.xsd
clsObject is type of abc.xsd (physically generated by using xsd.exe)
now i have filled clsObject from database

in orchestration is the following possible: msg = clsObject


Greg Forsythe wrote:[vbcol=seagreen]
> How about using a web service.
> Publish the schema or orchestration from Biztalk as a Web Service.
> Add a Web Reference to your .Net project (the message class is created for
> you, you do not need XSD.EXE)
> Create an instance of the class, populate the data and call the Web Service.
>
> Greg
>
> "killbill" <indus.vision@gmail.com> wrote in message
> news:1144272173.470935.144990@e56g2000cwe.googlegroups.com...

Greg Forsythe

2006-04-10, 7:34 pm

Can you explain how you create the clsObject instance and populate with
data?
Are you using custom .Net code from an orchestration?

You can assign a class instance to a message, but I think the message must
be declared as the same type as the class instance.

Greg


"killbill" <indus.vision@gmail.com> wrote in message
news:1144330449.224869.166680@u72g2000cwu.googlegroups.com...
> Hi,
> thanks for response.
>
> Actually i have created that class at VS 2005 Command prompt. Its a
> physical class and i am trying to use that class to fill data from
> database into my complex message. Once that data will be filled into
> that object then can i assign that object to a message in orchestration
> ???
>
> lets say:
> msg is type of abc.xsd
> clsObject is type of abc.xsd (physically generated by using xsd.exe)
> now i have filled clsObject from database
>
> in orchestration is the following possible: msg = clsObject
>
>
> Greg Forsythe wrote:
>



Paul Petrov

2006-04-10, 7:34 pm

1. Use Xml serialization attributes or implement IXmlSerializable (.net 2.0)
to get schema conformant Xml stream from your object.
2. Load stream into the variable of XmlDocument type
3. Assign variable to your message

Paul

"killbill" wrote:

> Hi All,
>
> I am facing a problem and cant get out of it.
>
> I have created a class for a chema using XSD.EXE command. Once data is
> loaded in that class's object then is it possible to pass that object
> to receive shape where the same xsd is specified from which that class
> is generated ???
>
> Any suggestion to do that ?
>
> Thanks
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com