• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transport error: 404 Error: Not Found  RSS feed

Priyam Srivastava
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am calling a web-service from my stand alone program and I am getting this error:

Unable to sendViaPost to url[]
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at net.servicestack.schemas.types.SyncReplyStub.tokenizeCard(SyncReplyStub.java:463)
at invoker.MyWebServiceInvoker.main(MyWebServiceInvoker.java:23)

But when I try to hit the same URL directly through the browser I am able to see the wsdl file. When I try to post message using Fiddler2 via Post method to same URL I am getting a proper response.

Basically this is what I have done:
From the WSDL URL: using Axis's WSDL2Java tool (Axis Version: axis2-1.6.2) I have created Stub which then I am using through my invoker class.

I am running the main method of my program through Eclipse (or running the same program from command prompt also gives the same error) and not using any Application Server to run my program.

If anyone can help me in this I'll be really grateful !!

Any information related to code needed let me know.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!