This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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).
Joined: Jan 11, 2002
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?