wood burning stoves 2.0
The moose likes Web Services and the fly likes Transport error: 404 Error: Not Found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Transport error: 404 Error: Not Found" Watch "Transport error: 404 Error: Not Found" New topic

Transport error: 404 Error: Not Found

Priyam Srivastava
Ranch Hand

Joined: Oct 29, 2006
Posts: 169
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.


"History would be kind to me, for I intend to write it."
I agree. Here's the link: http://aspose.com/file-tools
subject: Transport error: 404 Error: Not Found
It's not a secret anymore!