Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cannot implicitly convert ‘System.Xml.XmlDocument’ to ‘Microsoft.XLANGs.BaseTypes. XLANGMessage’

1,069 views
Skip to first unread message

Kevin S

unread,
Feb 22, 2010, 6:08:02 AM2/22/10
to
Hello,


I am trying to work out how to create a populated instance of an
Microsoft.XLANGs.BaseTypes. XLANGMessage so I can do some debugging of
an external c# method called from Biztallk, using the XML that is
shown as being the cause of an error inh BizTalk Administrator.

Looking at various websites it would appear that it is possible, but
when I follow the advice (e.g. from http://msdn.microsoft.com/en-us/library/aa995576%28BTS.20%29.aspx)
I get
cannot implicitly convert ‘System.Xml.XmlDocument’ to
‘Microsoft.XLANGs.BaseTypes. XLANGMessage’

The overall code I am using is

string xml_string = "<xml>blah</xml>";
XmlDocument myxmldoc = new XmlDocument();
myxmldoc.LoadXml(xml_string);
XLANGMessage list = myxmldoc;

Can anyone advise as to what I am doing wromg?

thanks

Joerg Fischer

unread,
Mar 4, 2010, 11:01:23 AM3/4/10
to
Hi,

Please note the following: an XLangMessage consists of one or more
XLangParts - the latter one can be used to assign a XmlDocument to. You may
access the individual parts through indexing, e. g. list[0] .

Regards


Joerg Fischer
BizTalk MVP

"Kevin S" <sea...@googlemail.com> schrieb im Newsbeitrag
news:f10fee09-c365-4c61...@k41g2000yqm.googlegroups.com...


> Hello,
>
>
> I am trying to work out how to create a populated instance of an
> Microsoft.XLANGs.BaseTypes. XLANGMessage so I can do some debugging of
> an external c# method called from Biztallk, using the XML that is
> shown as being the cause of an error inh BizTalk Administrator.
>
> Looking at various websites it would appear that it is possible, but
> when I follow the advice (e.g. from
> http://msdn.microsoft.com/en-us/library/aa995576%28BTS.20%29.aspx)
> I get

> cannot implicitly convert �System.Xml.XmlDocument� to
> �Microsoft.XLANGs.BaseTypes. XLANGMessage�

Marco

unread,
Mar 8, 2010, 4:50:04 PM3/8/10
to
Friends and friends around the world.
We are presenting the new messenger.
He will be in the commissioning by the friends that we indicate to use the
system.
Access the system by clicking the link below and register free.

You get something for using orkut?
You get something for using skype?
You gain something by using twiter?
You get somenthing for using facebook?

Enjoy this is your time!!

Sign up and join for free.


http://www.sqipcom.com/?ref=webempreendedor

http://stakeholder.sqipcom.com/user/webempreendedor

Kevin S

unread,
Mar 10, 2010, 1:11:00 PM3/10/10
to
Joerg,

I have tried using XLangParts but this issues are the same.

Would you have an example of code which works?

thanks.

KS

0 new messages