File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss WS error when calling service defined with no argument

 
Mike Ottinger
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic