According to the stack trace, this is not an issue in the client code, but a SOAP fault received from the server.
Andreas On Thu, Aug 6, 2009 at 16:39, Asma Maalej<[email protected]> wrote: > hello every one > > Actually, i used to work with axis2, implementing web service and invoking > them by a simple client and it worked usually fine. > however, i was surprised by a throwed exception i don't know the reason > below is the client code which was working fine: > > import java.rmi.RemoteException; > > import org.apache.axis2.AxisFault; > > import doca.SoustraStub.Soust; > import doca.SoustraStub.SoustResponse; > > public class SoustraClient { > public static void main (String argv[]){ > try { > SoustraStub stub = new > SoustraStub("http://localhost:8080/finalServ/services/Soustra"); > Soust sous = new Soust(); > sous.setB(7); > sous.setB(4); > SoustResponse resp = stub.soust(sous); > System.out.println("le résultat de soustraction est > :"+resp.get_return()); > } catch (AxisFault e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } catch (RemoteException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > } > } > > and this is the unknown exception: > > org.apache.axis2.AxisFault: unknown > 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 doca.SoustraStub.soust(SoustraStub.java:186) > at doca.SoustraClient.main(SoustraClient.java:21) > > please help >
