• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss WS error when calling service defined with no argument

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic