posted 15 years ago
I am using Eclipse 3.4.0 and Axis2-1.4.1 to create a web service client to call a .NET WCF which is using NTLM windows authentication.
I use Axis2 Code Generator to generate a stub called Service1Stub.java first. Then I wrote the following code to try.
Then I got this error when running it. Basically the error happens when calling Service1Stub.GetDataResponse res = stub.GetData(getData);
line 40
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.tempuri.Service1Stub.GetData(Service1Stub.java:472)
at org.tempuri.WcfClient.main(WcfClient.java:35)
Hope someone could give a help. Thanks in advance.