aspose file tools*
The moose likes Web Services and the fly likes Axis2 1.4 Client  Transport error: 501 Error: Not Implemented Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 1.4 Client  Transport error: 501 Error: Not Implemented" Watch "Axis2 1.4 Client  Transport error: 501 Error: Not Implemented" New topic
Author

Axis2 1.4 Client Transport error: 501 Error: Not Implemented

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 237
Hi All,
I have a client that runs from main that calls a thirdparty web service from a stub generated from the wsdl.
Making a call this way works fine.

I have another client within a deployed web application (i.e. 0c4j) that uses the same stub but returns a org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented
after the _operationClient.execute(true); within the stub. I have checked the soap package within the stub for both calls before it goes out and they are both the same.

Not sure why it works from main and yet fails within the application server.

Mat
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 237
Hi I'm pulling my hair out with this one (i.e. whats left of it), can anybody help.

Mat
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3855

Some details about the application inside the server and the environment itself would help someone to answer the problem... (TellTheDetails)


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 237
Hi Vijitha,
thanks for getting back to me. The same generated axis2 code (i.e. wsdl2java) is being used by both the deployed application and the standalone application.
My initial attempt was to get the connection working with the third party service, via the generated stub. I created a simple standalone app that just called the webservice
(i.e. logged on via a login operation using an encrypted password). Everything looked ok until I tried to do the same within a web application that I deployed into a local oracle server 10.1.3(oc4j).
The deployed war contains the same generated axis2 code as used by the standalone application. I have a spring quartz schedular that calls a class within the deployed app so that the app can logon to the third party web service and the carry out any other operations. I have looked inside the generated stub and the soap package is the same for both. The third party web service has been installed within our intranet. I'm not sure if this is some sort of proxy problem that is causing this error. Is the way that a standalone app communicates with a webservice different to that inside a deployed web application?, Can standalone applications also hit proxy servers?. Soory for the questions but I'm hitting a blabk wall with this.

(i.e I can access the third party wsdl via the browser)

Mat
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 237
Hi Vijitha,
have you been able to find out what is causing this fault.

Mat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 1.4 Client Transport error: 501 Error: Not Implemented