File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes WSDL2Java and WS-I compliance 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 "WSDL2Java and WS-I compliance" Watch "WSDL2Java and WS-I compliance" New topic

WSDL2Java and WS-I compliance

Ed Thompson
Ranch Hand

Joined: Jan 20, 2006
Posts: 43
I am trying to define a web service request where the request message requires no parameters. The response message will return a string.

If I define a request message with no part:

I get a a BP2120 'non-unique message signatures' validation error when I have too methods that both use the empty request (even though they are name differently).

If I define an empty element in types and assign to both, same thing.

If I define a unique empty element for each

It generates code the expects an input object to be passed in:

Is there a way to write the wsdl that is WS-I compliant AND will not require the generated method to require an input message?

[ September 04, 2008: Message edited by: Ed Thompson ]

Even if the voices <i>aren't</i> real, they still have some good ideas!
It is sorta covered in the JavaRanch Style Guide.
subject: WSDL2Java and WS-I compliance
Similar Threads
Web Service Deployment problem
question on client side soap binding stub on wsdl complext type element
adding new operation in web service interface
Question on message element in a WSDL file
RPC vs Document -Part element or type