Hi Dilip
Thanks for the reply. My request properties are like this:
request = (HttpWebRequest) WebRequest.Create(url);
request.Method = "SOAPAction";
request.AllowWriteStreamBuffering = true;
request.ContentType = "SOAP";
request.ContentType="text/xml";
In this case I get this error: "The remote server returned an error: (501)
Not Implemented."
Could u please tell me how to set the headers properly.
"Dilip Krishnan" wrote:
Hello techieTex,
You need to set the headers correctly for the http message for one...
setting SoapAction etc. Also content type should just be text/xml
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I have a simple SOAP Extension which does nothing but to log the SOAP
message to a file. This works fine when I use the webservice by
adding a webreference and using the class. However my application
breaks when I call the webservice using
HttpWebRequest/HttpWebResponse. I tried setting HttpWebRequest's
contenttype to application/x-www-form-urlencoded and also to SOAP.
Could somebody please tell me where I'm going wrong?