I can not see any problem here , because your service class throws
exception whenever you call the service. So fix  the service not to
throw exceptions.

Thank you!
Deepal
> Good day.
> When I try to convey his client exception in my experience the
> following error?
> org.apache.axis2.AxisFault: Hello Exception
> at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> at mypac.MyServiceStub.getExcept(MyServiceStub.java:201) at
> mypac.StartCli.main(StartCli.java:22)
> I gereriruyu service using Axis2 Service Maker
> A client using Axis2 Codegen Wizard Plug-inWhat am I doing wrong?
> * Service class*
>
>     public class MyService {
>
>     public String getExcept() throws MyExcept{
>
>     throw new MyExcept();
>
>     }}
>
> *MyException class*
>
>     public class MyExcept extends Exception { 
>
>     public MyExcept(){ 
>
>     super("Hello Exception"); 
>
>     }
>
>     }
>
> *My Client class*
>
>     public class StartCli {
>
>     public static void main(String[] args) {
>
>     try {
>
>     MyServiceStub stub = new MyServiceStub();
>
>     stub.getExcept();
>
>     } catch (RemoteException e) {
>
>     e.printStackTrace();
>
>     } catch (MyExceptException0 e) {
>
>     e.printStackTrace();
>
>     };
>
>     }
>
>     }
>
>


-- 
Thank you!


http://blogs.deepal.org


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to