On Monday 22 March 2010 9:52:53 pm chengy wrote:
> @XmlRootElement(name = "WSDKException", namespace =
> "com.actionsoft.awf.services")
> @XmlType(name = "WSDKException")
> public class MyException extends Exception {
>
> public MyException() {
> super();
> }
> }
>
> the wsdl generated still use the default targetNamespace,but I want to use
> com.actionsoft.awf.services,how to?Thanks.
Exceptions are not handled by JAXB directly as JAXB cannot handle them. You
need to use the @WebFault annotation on them.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog