Ok, I found that the post method in HTTPUtils.java is pretty much set-
up to make HTTP 1.1 requests but makes 1.0 requests by default. I 
modified the post method to send 1.1 requests, added some headers (User-
agent, Connection: keep-alive and Accept) and recompiled. I checked a 
network trace of the request and it is sending valid HTTP 1.1.

The SOAP server still throws a fault so I'm going to log a bug against 
the server and see if the development team says anything about it.

I've got to hand it to the Apache SOAP team... The code, using Ant to 
build and the docs are very nice.

-Frank


Quoting [EMAIL PROTECTED]:

> I don't see anything in Constants.java to control which HTTP 
> protocol will be used. There is a setting for the version of SOAP 
> XML encoding but that is different. -Frank
> 
> 
> 
>       Edit Constants.java and rebuild?
> 
> > -----Original Message-----
> > From: Frank Cohen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 17, 2002 11:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: HTTP 1.1 Protocol for Requests
> > 
> > 
> > I'm using Apache SOAP 2.3.1 on Sun JDK 1.4 on Windows 2000. 
> I notice that
> > when I make a SOAP request to a server Apache SOAP makes 
> an HTTP POST
> > request to the server using HTTP/1.0.
> > 
> > POST /jaxrpc-hello/jaxrpc/helloif HTTP/1.0
> > 
> > The SOAP 1.1 specification says that HTTP/1.1 is required.
> > 
> > The server responds to this request with an "Unrecognized 
> operation" fault.
> > I suspect it's because the server is strictly enforcing the 1.1 
> requirement.
> > 
> > How do I get Apache SOAP to use 1.1?
> > 
> > -Frank
> > 
> > 
> > 
> 

Reply via email to