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 JBoss WS error when calling service defined with no argument Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JBoss WS error when calling service defined with no argument" Watch "JBoss WS error when calling service defined with no argument" New topic
Author

JBoss WS error when calling service defined with no argument

Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
Hi All, within my service I have the following defined:



When I deploy this and attempt to call, I get the following error:

Endpoint {http://service.integration.sephora.com}UpdateSkinCareProductEligibilityHistoryPort does not contain operation meta data for: updateSkinCareProductEligibilityHistory

It's only when I place in an empty parameter like this:



that I get it working. Is it not possible to define a service method with no arguments? Is there another annotation I might be missing to make this work? Thanks


SCJP 1.4 SCJD 1.5
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Assuming you have a WSDL and an XML schema specifying the custom element you want to specify using @WebResult:
Have you tried specifying the target namespace, part name etc. using the optional elements of the @WebResult annotation?
For instance, like this:


Note that your WSDL must contain the appropriate wsdl:part (RPC style) or an XML element with the matching local name (Document style).
Best wishes!
Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
Thanks for the reply Ivan, unfortunately adding the targetNamespace attribute to the @WebResult attribute doesn't seem to help. I've got it working by adding a simple dummy String parameter



I just find this less than ideal, I don't need the parameter so why am I forced to make one?

Thanks again for the reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss WS error when calling service defined with no argument