all groups > dotnet web services > february 2007 >
You're in the

dotnet web services

group:

.net client not getting a response from java web service


.net client not getting a response from java web service christen_mitchell NO[at]SPAM hotmail.com
2/21/2007 6:08:45 PM
dotnet web services:
I have written a basic .net client to call methods on a java web
service. I get the call to the webservice but cannot recieve any
responses. When watching a packet capture I see that my client sends
"HTTP GET /wpad.dat HTTP/1.1" and then the web service responds with
"HTTP HTTP/1.1 404 Not Found".

Im wondering if the web service doesn't support HTTP/1.1 and only
supports HTTP/1.0. If this is the case how do you force the .net
client to use HTTP/1.0 and not HTTP/1.1.

Thanks
RE: .net client not getting a response from java web service Sivan VelappanPillai
3/6/2007 12:20:15 PM
Add this into service

protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest =
(HttpWebRequest)base.GetWebRequest(uri);

webRequest.KeepAlive = false;
webRequest.ProtocolVersion = HttpVersion.Version10;
return webRequest;
}



[quoted text, click to view]
AddThis Social Bookmark Button