Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help! Cannot invoke operation on web service!  RSS feed

 
Kelly Dolan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!