File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis2 http Configuration problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 http Configuration problem" Watch "Axis2 http Configuration problem" New topic
Author

Axis2 http Configuration problem

Joe Smith
Greenhorn

Joined: Oct 31, 2007
Posts: 8
Hi all,

I've implemented a SOAP Web Services client using AXIS2-1.3 libraries and WSDL2JAVA. I've used the following configuration to reuse the httpclient and increase the timeout period to 120 seconds, but the connection still times out after the default value of 60 seconds. The other annoying problem is that establishing a new https/ssl session is unusually slow, it takes about 5 seconds! This problem doesn't exit with other clients such as JMeter or .Net clients, so I think the problem is in my client configuration not the server.
Here is my client configuration:


stub = new myStub(url);
org.apache.axis2.client.Options options = stub._getServiceClient()
.getOptions();
options.setProperty(org.apache.axis2.transport.http.HTTPConstants.REUSE_HTTP_CLIENT, "true");

int timeOutInMilliSeconds = 120*1000;
options.setTimeOutInMilliSeconds(timeOutInMilliSeconds); // doesn't make any difference
options.setProperty( org.apache.axis2.transport.http.HTTPConstants.SO_TIMEOUT, timeOutInMilliSeconds); // No change in timeout
options.setProperty( org.apache.axis2.transport.http.HTTPConstants.CONNECTION_TIMEOUT, timeOutInMilliSeconds); // No change in timeout!

I'd appreciate your help in fixing this problem.

Thanks
Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 http Configuration problem
 
Similar Threads
How to configure Axis2 client with generated stubs?
Invoking CrmService from Java Client problem
Uploading a document to SharePoint using Java and Axis2
Axis2, Tomcat 5.5.25Null pointer exception thrown when using HTTPS client connection.
axis2 ntlm authentication - No credentials available for NTLM