You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/02/14 21:07:09 UTC
DO NOT REPLY [Bug 17087] New: -
If I create a subclass of AxisFault the "faultcode" is not the value set on the server when cought in the client
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17087>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17087
If I create a subclass of AxisFault the "faultcode" is not the value set on the server when cought in the client
Summary: If I create a subclass of AxisFault the "faultcode" is
not the value set on the server when cought in the
client
Product: Axis
Version: 1.1RC1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Serialization/Deserialization
AssignedTo: axis-dev@ws.apache.org
ReportedBy: dlogan@veritas.com
If I throw an AxisFault in my service everything works fine.
If I create a subclass of AxisFault the "faultcode" is always =
http://schemas.xmlsoap.org/soap/envelope/>}Server.generalException
Why isnt the faultcode = "MyService:MY_FAULT_CODE" when caught on the
client?
I am running axis v1.1rc1
Thanks
----------------------------------------------------------------------------
----
For example...
public class MyService {
public void throwMyAxisFault() throws MyAxisFault {
throw new AxisFault("MyService:MY_FAULT_CODE", "this is my message");
}
}
public class MyAxisFault extends AxisFault {
public MyAxisFault(String faultCode, String message) {
super(faultCode, message, null, null);
}
}
In the client...
public void testMyService() {
try {
myServiceLocator.getMyService().throwMyAxisFault();
}
catch (MyAxisFault maf) {
System.out.println("faultCode=" + maf.getFaultCode());
System.out.println("faultString=" + maf.getFaultString());
}
}