Passing Element parameter in Jax-ws web method
Dehaene Thomas <[email protected]> Sat, 17 Mar 2012 15:14:42 +0000
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I have a problem when accepting a web parameter of the type Element. My code is as follows:
@WebMethod(operationName = "hello")
public void hello(@WebParam(name = "xmlElement") Element element){
String name = new String();
name = element.getChild("FirstName").getValue();
}
Which generates an error when I try to deploy the web service. Namely that the Element class
does not have a no-arg constructor.
If this where a normal method, I would simply make it a 'public static void' method,
but since WebMethods in Jax-ws can't be of the 'final' or 'static' type, I can't seem to
accept an Element parameter.
Any suggestions how to solve this?
Many thanks and greetings
Thomas Dehaene
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]