axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Акинцев Валерий <ak...@inbox.ru>
Subject Re[2]: org.apache.axis2.AxisFault
Date Sun, 28 Sep 2008 15:02:09 GMT

I want to get something like this 

axis2-1.4.1\samples\faulthandling

Exception throws into service class and client class catch my own exception(not AxisFault)

WDSL file i tryed generate into Axis2 Codegen Wizard Plug and tryed make service arhive(aar)
without WDSL file
but cathe always AxisFault

I spent several days trying to get correctly working simple service.. :-(



-----Original Message-----
From: Deepal jayasinghe <deepalk@gmail.com>
To: axis-dev@ws.apache.org
Date: Sun, 28 Sep 2008 09:46:52 -0400
Subject: Re: org.apache.axis2.AxisFault

> 
> 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: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 

---
Акинцев Валерий Андреевич



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message