you need to wait for http1.1 support in axis, including persistent
connections. Which means you either need to wait for java.net to fix its
http1.1 support, or Axis to incorporate the Jakarta project's HttpClient 2.0
library to provide working htpt1.1. code.


----- Original Message -----
From: "Kamlesh Patel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 17, 2003 17:55
Subject: HowTo change Transport type from HTTP/1.0 to HTTP/1.1


Hi,

I have written a simple client program using AXIS to connect to a gSOAP
based server. By default is uses HTTP/1.0. Is there a simple way to change
this from the client code. I used the WSDL2Java tool to create my java
stubs.

Basically I want to use the persistent connection feature of HTTP/1.1.

I am doing the following in my client code, but without luck.
...

//public class TestLocator extends org.apache.axis.client.Service implements
TestPackage.Test

TestLocator service = new TestLocator();
AxisEngine engine = service.getEngine();
MessageContext  msg = new MessageContext(engine);
msg.setProperty("axis.transport.version","HTTP/1.1");
...

What am I missing here. Can't seem to get the property understood. I keep
sending using HTTP/1.0.

Any pointers will be very HelpFull.

Thanks,
Kamlesh

Reply via email to