Change Content-Type.

K

KaNos

Hello,
When I consume my webservice, it sends a Content-Type :
application/soap+xml; charset=utf-8. But I want to change it to Content-Type
: application/xml; charset=utf-8. Is there something to ad or delete in the
config file ? I don't know how to do that.
Thanks for response.
 
R

Rinku V

In your client code try something like:

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "GET";
req.ContentType = "application/xml; charset=utf-8";
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top