You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Maria Fernandes <mg...@rediffmail.com> on 2003/11/25 14:07:06 UTC
Using the SAAJ API to send messages in AXIS
Hello
Could anyone please tell me how to send messages using the SAAJ API
in AXIS. I am a newbie so any help would be greatly appreciated
Any links to SAAJ API and AXIS
Thanks in advance
Maria
With lots of love
Maria
How to set a service timeout? -> java.net.ConnectException: Connection timed out: connect
Posted by Leonardo Mena <le...@montevideo.com.uy>.
Somebody can tell me how can I change the default timout a web service has? I tried the following but didn't work:
YAESystemServiceLocator locator = new YAESystemServiceLocator();
YAESystem system = locator.getYAESystem(myURL);
((org.apache.axis.client.Stub) system).setTimeout(myTimeout);
I specified a timeout = 60 * 5000 (5 minutes) but in about 30 secs the following message arrives:
java.net.ConnectException: Connection timed out: connect
I also do a print of the timeout that was supossed to be the one in consideration just before making the call, and it's corectly set to my value, so I am very confussed:
System.out.println("TIMEOUT " + _call.getTimeout());
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parent});
Any ideas of what happening or how to correctly set a timeout to a service?
Thanks in advance,
Leonardo