Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Change Content-Type.

Reply
Thread Tools

Change Content-Type.

 
 
KaNos
Guest
Posts: n/a
 
      08-08-2006
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.


 
Reply With Quote
 
 
 
 
Rinku V
Guest
Posts: n/a
 
      08-21-2006
In your client code try something like:

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


"KaNos" wrote:

> 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.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Democrat's "change," not pocket change Cyberiade.it Anonymous Remailer Computer Support 0 03-14-2009 07:07 AM
"Change your language and you change your thoughts." Suganya C Programming 0 04-29-2008 01:35 PM
Change the master GridView after detail change? Q. John Chen ASP .Net 0 11-15-2006 05:31 PM
Change the master GridView after detail change? Q. John Chen ASP .Net 0 11-15-2006 05:30 PM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM



Advertisments