Quotes on Web Service's SOAP Exceptions

L

Leinal

We are using c# win apps with web services, we have all quotes on our
error messages getting to the client application not in the correct
format, like the next example:
Example:

[WebMethod]
public int hello_world () {
try {

throw new System.Exception ("sesión");

}catch System.Exception () {

throw;
}
}

the word "sesión" arrive to our client as "sesión".

We have tried changing the Enconding of the Web.config:

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>

but this have not work at all.

I have read a few information on web/groups about problems with sp1,
but still didnt found the workaround to get on client the strings.
 
G

Guest

Have you tried loading the xml into a DOM document and parsig out the
element's value through the DOM? It should translate things correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top