I'm working with a Java Web Service (Specifically, Java, Axis on
Tomcat) and a VB.NET 1.1 client. The service is using Basic
Authentication. The code involved on my side is darned trivial:
Module Sender
Sub Main()
Dim whp As whProxy.WareHouseService
Dim resp As String
Try
whp = New whProxy.WareHouseService
whp.Credentials = New Net.NetworkCredential([hidden],
[hidden])
whp.PreAuthenticate = True
whp.Timeout = 60000
resp = whp.submitOrder([val5],[val1],[val2],[val1],[val3],
[val4])
Catch ex As Exception
Throw ex
Finally
whp.Dispose()
End Try
Console.ReadLine()
End Sub
End Module
After the invocation of submitOrder, the thread pauses a few seconds,
then follow exception raises:
The request failed with HTTP status 505: HTTP Version Not Supported.
Ugh. Using a packet sniffing program and TinyGet, I know the request
is marshalling over HTTP/1.1, which the server otherwise seems to
support. I don't believe this is an error comming from my side since
the sniffer shows good requests floating over. If I point this client
at an .NET-base version of the service, it works.
Previous research pointed at the use of the PreAuth property, but I'm
still see two requests getting generated. That behavior seems to
conflict with the doc for HttpWebRequest.PreAuth. I wonder if that
thats making the service mad at me.
My counter part is able to do some magic and the service starts
working for a while. Then we get this.
Thoughts? Suggestions? Ideas?
Thanks!
Kent Tegels
SQL Sever Express Blog (Good for FAQs): http://tinyurl.com/6r4gb
SQL Server Express BOL (The docs you need): http://tinyurl.com/4ctjx
Kent's Blog: http://www.tegels.org/