This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SocketTimeoutException: Read timed out  RSS feed

 
CrystalCracker
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, I am sorry to bug you with a newbie question.

I am using Axis1.4. I write a build script and created the client stubs from WSDL, which generated the following files for me:

customer.CustomerServiceInterface.java
customer.CustomerWS.java
customer.CustomerWSBindingImpl.java
customer.CustomerWSBindingSkeleton.java
customer.CustomerWSBindingStub.java
customer.CustomerWSLocator

customer.types.Customer.java
customer.types.CustomerAddress.java
customer.types.GetCustomerElement.java
customer.types.GetCustomerResponseElement.java
customer.types.GetTestFaultElement.java
customer.types.GetTestFaultResponseElement.java
customer.types.OraIntException.java

Then I wrote a client application with a main method like this:

CustomerWSBindingStub stub = new CustomerWSBindingStub();
stub.setUsername("test");
stub.setPassword("test");
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://test.test.com:8878/CustomerWS/CustomerWS");
stub.setTimeout(60000);
GetCustomerElement element = new GetCustomerElement("1");
GetCustomerResponseElement response = stub.getCustomer(element);

**********************************************************************
This gives me the following error:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketTimeoutException: Read timed out
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out

I tried changing the TimeOut, but with no luck. Is there any basic thing that I am missing? I got no clues.
Any help will be highly appreciated.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "CrystalCracker",

Welcome to JavaRanch.

There aren't many rules around here, however adherence to the JavaRanch Naming Policy is one of them. The display name CrystalCracker does not comply with that policy. Please adjust your display name. Your cooperation is appreciated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!