| 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
Bartender
Joined: Oct 04, 2006
Posts: 2194
|
|
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
|
 |
 |
|
|
subject: JBoss WS error when calling service defined with no argument
|
|
|