Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes axis : No operation name specified! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Web Services
Bookmark "axis : No operation name specified!" Watch "axis : No operation name specified!" New topic

axis : No operation name specified!

Stefan Geelen
Ranch Hand

Joined: Nov 19, 2001
Posts: 49
I checked the internet and there were some posts of people having the same problem but none the answer

The problem comes up with following method exposed as webservice:

public String getContextPath() {
return this.getServletContext().toString();

and defined in the services.xml as:

When genering the client stubs using wsdl2java I get following warning:

Is this normal behavior ?

Anyone some idea how to solve this ?

Stefan Geelen
Ranch Hand

Joined: Nov 19, 2001
Posts: 49
Me again,

adding a parameter to the method solves the problem, so it becomes:

I added the dummy parameter.

I get another error but that seems that the webservice cannot extend HttpService. I'll remove that one, giving me another problem that I'll discuss in another topic.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: axis : No operation name specified!
It's not a secret anymore!