Guys,
I solved this problem by changing the end point url in
StockQuoteServiceLocator.
pradeep.
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
Pradeep
Jonnalagadda/FSG To: [EMAIL PROTECTED]
/CSC cc:
@CSC Subject: Connection refused-Server is
up and running
11/13/2003 10:48
PM
Please respond
to axis-user
Could any one tell how to deal with connection refused exception. I have
searched the mailing list archive but of no use.Any insights would be of
great help
I'm able to goto my end point
http://localhost:9080/axis/services/StockQuoteSOAPPort on the browser. But
when i wrote the client code
StockQuoteService service = new StockQuoteServiceLocator();
StockQuotePortType port = service.getStockQuoteSOAPPort();
Quote quote = port.getStockQuote("IBM");
System.out.println(quote.getVolume());
Gives me connection refused
entered
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection refused: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.net.ConnectException:
Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:345)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:157)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:144)
at java.net.Socket.<init>(Socket.java:294)
at java.net.Socket.<init>(Socket.java:121)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:129)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.ibm.w3.services.stockquote.StockQuoteSOAPBindingStub.getStockQuote(StockQuoteSOAPBindingStub.java:157)
at client.TestClient.main(TestClient.java:27)
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:345)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:157)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:144)
at java.net.Socket.<init>(Socket.java:294)
at java.net.Socket.<init>(Socket.java:121)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:129)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.ibm.w3.services.stockquote.StockQuoteSOAPBindingStub.getStockQuote(StockQuoteSOAPBindingStub.java:157)
at client.TestClient.main(TestClient.java:27)
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------