Jack,
Hope bellow points will help you to solve your Problem.
You can process in 3 ways.
1) IN your client code you need an catch block for AxisFault and U need to
retrieve the message from that exception
try{
//Client code
}catch(AxisFault af){
if(af!=null){
String faultMsg = af.
If only it where that easy. :) This is the question - how do I get access to
the fault itself? The client code makes the request and returns a successful
response (Publication object) or an exception. The exception is in the
element of the SOAP fault. I need to get the faultstring. Below
//assume you have access to soapFault
String text = soapFault.getFaultString();
M-
Date: Wed, 4 Jun 2014 11:34:10 -0700
From: [email protected]
Subject: Re: Accessing faultstring in Axis2 client
To: [email protected]
The AxisFault class is not available here. If so, it wou
The AxisFault class is not available here. If so, it would be trivial. Only
the defined response OR an exception is returned (see code below). Is there
any way to get the faultstring?
Thanks,
J
On Wednesday, June 4, 2014 11:19 AM, Martin Gainty wrote:
AxisFault.java
/**
* D
AxisFault.java
/**
* Dump the fault info to the log at debug level.
*/
public void dump() {
log.debug(dumpToString());
}
/**
* turn the fault and details into a string, with XML escaping.
* subclassers: for security (cross-site-scripting) reasons,
*
I have a simple question - how do I access the SOAP faultcode and faultstring
in an Axis2 client?
The client code calls the web service operation and returns the response or
throws an exception:
try {
stub.getPublication(pub, auth);
}
catch (WebServiceException wse) {
wse.printStackTrace();
}