Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encoding XML
Message
From
27/04/2011 11:23:48
 
 
General information
Forum:
ASP.NET
Category:
SOAP
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01508467
Message ID:
01508547
Views:
35
>I'm not clear on your problem but the rules are simple : Convert to < when the character is to be treated as text rather than an XML start tag.
>
>BTW, why don't you use the one of the .NET xml classes rather than constructing one long string. The XmlDocument, XDocument, or even the basic XmlWrter classes all make the construction of XML cleaner and less error prone. The above could be something like:
XDocument cSoapMessage = new XDocument(new XDeclaration("1.0", "UTF-8", ""));
>            cSoapMessage.Add(new XElement("Envelope",
>                new XElement("Body",
>                    new XElement(cMethod,lcPostData))));
Admittedly I've not included the namespaces which is a little more complicated - but again can prevent xmlns errors down the line.

The reason was so that I have full control over the entire envelope. Specific servers require specific SOAP configuration sometimes and by using that approach, I can see exactly the entire SOAP XML.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform