This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transport error: 404 Error: Not Found

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(
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
at org.apache.axis2.transport.http.HTTPSender.send(
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
at org.apache.axis2.engine.AxisEngine.send(
at org.apache.axis2.description.OutInAxisOperationClient.send(
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
at org.apache.axis2.client.OperationClient.execute(
at net.servicestack.schemas.types.SyncReplyStub.tokenizeCard(
at invoker.MyWebServiceInvoker.main(

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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic