|
Home > Archive > BizTalk Server Orchestration > December 2004 > missing using directive or an assembly reference
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 |
missing using directive or an assembly reference
|
|
|
| I want to send my whole message in to webservice,
there is my code:
[WebMethod]
public string GetXml2String(XLangMessage msg)
{
XLANGPart part = msg[0];
XmlDocument doc = (XmlDocument)part.RetrieveAs(typeof(XmlDocument));
return doc.OuterXml.ToString();
}
but after I rebuild my project, BTS return this error message:
The type or namespace name 'XLANGMessage' could not be found (are you
missing
a using directive or an assembly reference?)
Somebody would tell me I miss something?
Thanks, David.
| |
| Jon Flanders 2004-12-28, 2:46 am |
| Why not just make it XmlDocument? You don't have to specify a BizTalk type
(like XLangMessage) when passing data to a webmethod.
--
Jon Flanders
http://staff.develop.com/jfland/
"David" <calebchen@walla.com> wrote in message
news:1104201204.310072.13160@z14g2000cwz.googlegroups.com...
> I want to send my whole message in to webservice,
> there is my code:
>
> [WebMethod]
> public string GetXml2String(XLangMessage msg)
> {
> XLANGPart part = msg[0];
> XmlDocument doc = (XmlDocument)part.RetrieveAs(typeof(XmlDocument));
> return doc.OuterXml.ToString();
> }
>
> but after I rebuild my project, BTS return this error message:
> The type or namespace name 'XLANGMessage' could not be found (are you
> missing
> a using directive or an assembly reference?)
> Somebody would tell me I miss something?
> Thanks, David.
>
| |
|
| After I use the XmlDocument, it still appear error-message:
The type or namespace name 'XmlDocument' could not be found.
Because I must transfer the whole message to my C# component,
and transform it to a long-string, at last put the string to another
webservice.
somebody tell me use this method like I posted previously.
Thank you anyway, David.
| |
| Jon Flanders 2004-12-28, 2:46 am |
| Just add a using for System.Xml.
--
Jon Flanders
http://staff.develop.com/jfland/
"David" <calebchen@walla.com> wrote in message
news:1104206093.176248.122790@f14g2000cwb.googlegroups.com...
> After I use the XmlDocument, it still appear error-message:
> The type or namespace name 'XmlDocument' could not be found.
>
> Because I must transfer the whole message to my C# component,
> and transform it to a long-string, at last put the string to another
> webservice.
>
> somebody tell me use this method like I posted previously.
> Thank you anyway, David.
>
| |
|
|
|
|
|