Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encoding XML
Message
De
27/04/2011 11:23:48
 
 
À
27/04/2011 04:01:21
Information générale
Forum:
ASP.NET
Catégorie:
SOAP
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01508467
Message ID:
01508547
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform