File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Help! Cannot invoke operation on web service! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Help! Cannot invoke operation on web service!" Watch "Help! Cannot invoke operation on web service!" New topic
Author

Help! Cannot invoke operation on web service!

Kelly Dolan
Ranch Hand

Joined: Jan 08, 2002
Posts: 103
I am at a total loss. I am probably doing something obviously wrong and stupid but I've been staring at this for two days and can't see straight anymore.

I implemented a web service in JBoss 4.0.1 SP1 as a POJO with a method "String getDocuments(String userid, String password)". The web service seems to deploy just fine and I can use the URL?wsdl command to see my WSDL but my test client cannot seem to invoke this method. I get an AxisFault saying there is no such method. My code, WSDL and exception is below. Any and all suggestions are greatly appreciated!

Kelly



The code of interest in my test servlet is:



The exception is thrown by call.invoke(). As you can see, I loop over the calls provided by the web service and "getDocuments" is in the list so I am assuming I am seeing the web service.

The exception is:


My WSDL is:

Kelly Dolan
Ranch Hand

Joined: Jan 08, 2002
Posts: 103
I figured this out. For everyone else's benefit, for whatever reason, JBoss 4.0.1 does not like web services being deployed in an expanded state. When we deployed our WAR file that contained the web service in a .war file (vs. in an expanded .war directory), everything worked.

Kelly
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Help! Cannot invoke operation on web service!
 
Similar Threads
why do i get this error.. if a lot of people are connected
Tomcat + NullPointerException
Getting Relaying denied error while sending out mails
ForumException.java:85)
AXIS - EJB Provider