Hi all,

I have a problem with generated XMLBeans for the AXIS2.

On server side I have something like this:

public class A {
     public void method() throws MyException{...}
}

When I deploy it and generated Java sources from generated WSDL file, the
MyException is generated as an XMLBean and the sources look like this:
mypackage.MyException - is an interface
mypackage.impl.MyExceptionImpl - is the interface implementation

So, and I want to change the mypackage to something different (e.g.
mypackagex), because I want to use the original exception in the client side
(I know I have to update the stub). The final state will be:
mypackagex.MyException
mypackagex.impl.MyExceptionImpl

The communication I want should be:
1) at server side is thrown mypackage.MyException
2) througn AXIS2 the exception will be transported as mypackagex.MyException
(mypackagex.impl.MyException)
3) at client side I'll receive mypackagex.MyException (its implementation)
4) on the client side I can use mypackage.MyException

How can I do this ??? Or is there a better way how to do it ???

Thanks a lot.

     Pat

Reply via email to