axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject 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
Date Fri, 14 Feb 2003 20:07:09 GMT
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());
  }

}

Mime
View raw message