aspose file tools*
The moose likes Web Services and the fly likes org.apache.axis2.AxisFault: http Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.apache.axis2.AxisFault: http" Watch "org.apache.axis2.AxisFault: http" New topic
Author

org.apache.axis2.AxisFault: http

Anirban Das
Ranch Hand

Joined: Nov 22, 2003
Posts: 63
Hi,
Iam trying to access a service which is hosted on axis2 server. While running the client Iam getting the following error

log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: http
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.ttdev.client.SimpleServiceStub.concat(SimpleServiceStub.java:169)
at com.ttdev.client.SimpleClient.main(SimpleClient.java:15)
Caused by: java.net.UnknownHostException: http
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:239)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:90)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:157)
at java.lang.Thread.run(Thread.java:595)














Here is the wsdl which the service has published.



The client code which I have generated using the "axis code generator" (eclipse plugin), is as follows

SimpleClient.Java -- which I have written myself


SimpleServiceStub.java


Anirban Das
Ranch Hand

Joined: Nov 22, 2003
Posts: 63
Hi Guys....
Well I got it . Its because the endpoint reference was not proper in wsdl. Once I changed it, it worked.

Thanks-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.axis2.AxisFault: http
 
Similar Threads
WebService Client - Unexpected SubElement Exception
Confused on the code implementation generated by the Axis2 Code Generator.
Web Services using AXIS 2
Axis2 Http Header
org.apache.axis2.AxisFault: http