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 Baiss Eric Magnusson <ba...@mac.com> on 2006/07/20 01:42:01 UTC

fails with a timeout

I have been using the following code to do a simple Web Services call
and it is failing with a timeout the vast majority of the time of
late and am wondering if there is anything I can do to solve the
problem from my end.

	String endpoint =  "http://services.xmethods.net:80/soap";

	org.apache.axis.client.Service service = new  
org.apache.axis.client.Service();

	org.apache.axis.client.Call call = (org.apache.axis.client.Call) 
service.createCall();
			
	call.setTimeout( new Integer( 4 * 60 * 1000 ));

	call.setTargetEndpointAddress( new java.net.URL( endpoint));

	call.setOperationName( new javax.xml.namespace.QName(  "urn:xmethods- 
delayed-quotes", "getQuote" ));											

	call.addParameter( "Symbol",  
org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN );

	call.setReturnType( org.apache.axis.Constants.XSD_FLOAT );
			
	Float ret = (Float) call.invoke( new Object[] { symbol } );

Thanks,

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org