Change Soap Request Header from text/xml to soap/xml for asmx webservice in C#



I need to call a webservice. I generated a proxy and invoked the method. But it keeps failing. Because the API is expecting soap/xml in the header whereas the proxy client generated in Visual studio is send text/xml in header.


Question: Is it possible to change the value of the Content-Type header for a generated proxy client?


No comments:

Post a Comment