Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Not able to hit the webservice when deployed in tomcat. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Not able to hit the webservice when deployed in tomcat." Watch "Not able to hit the webservice when deployed in tomcat." New topic
Author

Not able to hit the webservice when deployed in tomcat.

Arpan Raj
Greenhorn

Joined: Apr 22, 2010
Posts: 15

Hi,
we were previously using the webservice AXIS-1.
And it was deployed in tomcat server at location (http://ServerURL/webapps/BPQB-SOPostService-MYApp/services/SOPostWebService).

Now I am tryin to upgrade it to AXIS-2.

I have written the WSDL , Generated the skeleton, Stubs. Added business logic in the skeleton.
I created the aar file put it in the AXIS2_Home/services/repository... and it works fine.
I tested the above scenario on my local machine and with AXIS-2 server.


Now the same I am trying to do on the remote machine.
I have changed the stub files to point it to http://ServerURL/webapps/BPQB-SOPostService-MYApp/services/SOPostWebService.In the constructor of the stub.

After uploading the webservice to the tomcat if i hit the http://ServerURL/webapps/BPQB-SOPostService-MYApp/services/SOPostWebService I see the page which tells

SOPostWebService
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...

Now i trying to invoke the webservice from my code using stub but it fails on the _operationClient.execute(true); call in the stub.

Stack trace is here :


Skeleton Code :


WSDL file code:



Client Code:



Can any one suggest what might be the issue?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Not able to hit the webservice when deployed in tomcat.
 
Similar Threads
Axis2 Issue, Please Help!
Axis2 POJO web service - wsdl generating xs:anyType
XmlException on calling WSDL2Java
how to make the web service client
What is "portName" in Webservice Invocation Framework.