I'm a new to web services.
I tried to create a
java client using Apache Axis to call a Stock Quotes web service, which can be found in "http://ws.invesbot.comstockquotes.asmx". The following are part of the codes.
...
String endpointURL = "http://ws.invesbot.com/stockquotes.asmx?WSDL";
String input = args[0];
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
call.setOperationName( new QName("http://ws.invesbot.com/", "GetQuotes") );
call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING);
String ret = (String) call.invoke( new Object[] { input } );
...
When I ran that class, "java -cp .:$AXISCLASSPATH MyJavaClient goog", I got a response of "java.net.ConnectException: Connection timed out". Why?? I thought a java
SOAP client can invoke web services implemented in any platforms.
But, I have no problems in calling the web services samples provided by Axis from my localhost.
Any ideas???