Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Axis

 
Kel Walker
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am investigating the capabilities of Apache Axis, 1.0rc1. Unfortunately I have fallen flat on my face at the very first fence.
The user guide gives an example of consuming web services with Axis: samples/userguide/example1/TestClient.java. I have compiled this and run it.
I get:
- Mapping Exception to AxisFault
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.net.ConnectException: Connection timed out: connect
faultActor: null
faultDetail:
stackTrace: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:130)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:173)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:116)
at org.apache.axis.strategies.Invjava.net.ConnectException: Connection timed out: connect
ocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:153)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:181)
at org.apache.axis.client.Call.invokeEngine(Call.java:2084)
at org.apache.axis.client.Call.invoke(Call.java:2073)
at org.apache.axis.client.Call.invoke(Call.java:1842)
at org.apache.axis.client.Call.invoke(Call.java:1768)
at org.apache.axis.client.Call.invoke(Call.java:1306)

Can somebody PLEASE help!!!
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are trying the example whose endpoint is http://nagoya.apache.org:5049/axis/services/echo
i too tried,i think that site is down. You can ignore that now and try building ur own service as described in "Publishing Web Services with Axis"
Regards
Balaji
 
Yoo-Jin Lee
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I thought the article at: http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html , was really helpfull.
Yoo-Jin.
 
Kel Walker
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic