---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.
--- Begin Message ---
Dear All, 
I have implemented standalone service, which is listening on a specific 
port(80) using gSoap toolkit as the implementation of SOAP. I want to use 
keep-alive in order to connect to the service with a java client, using apache 
axis. the gSoap service supports keep-alive, since I have checked it with a C++ 
client. But Java client closes the connection, although I have made changes in 
the HTTP header to use HTTP 1.1 and Connection-Keep alive, as the following:
   org.apache.axis.client.Call _call = createCall();
        _call.setOperation(_operations[2]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("");
        _call.setEncodingStyle(null);
        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, 
Boolean.FALSE);
        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, 
Boolean.FALSE);
        
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName("", 
"SQLExecuteFactory"));
_call.setProperty(org.apache.axis.MessageContext.HTTP_TRANSPORT_VERSION,HTTPConstants.HEADER_PROTOCOL_V11);
setRequestHeaders(_call);
Hashtable headers = new Hashtable();
headers.put("Connection","keep-alive");
_call.setProperty("HTTP-Request-Headers", headers);


Is it even possible to use keep alive in that way? I am using Axis 1.4.
Thank you in advance
Cheers,
Ali

       
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.

--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to