This works for me

 private void throwSOAPFaultException(String
faultCode, String faultString) {
        QName qn = new QName("some qualifier",
faultString);
        SOAPFactory fact = null;
        Detail det = null;

        try {
            fact = SOAPFactory.newInstance();
            det = fact.createDetail();
        } catch (javax.xml.soap.SOAPException e) {
        }

        throw new SOAPFaultException(qn, faultString,
faultCode, det);
    }


--- [EMAIL PROTECTED] wrote:
> Hi,
> 
> I've tried to throw a SOAPFaultException in the
> handleRequest of a JAX-RPC Handler but it looks like
> Axis finally generates its own exception. My code
> is:
> 
> Detail detail = null;
> try {
>   detail = SOAPFactory.newInstance().createDetail();
>   detail.addChildElement("MyDetailss").addTextNode("
> ffffailedddd");
> } catch (SOAPException e1) {}
> throw new SOAPFaultException(
>   new QName("http://test/test";, "test"),
>   "info on the fault",        
>   "info on the actor",
>   detail);
> 
> Is it possible to work with SOAPFaultException in
> Axis, instead of AxisFault?. How?.
> 
> Thanks,
> Jorge
> 
>
__________________________________________________________________
> McAfee VirusScan Online from the Netscape Network.
> Comprehensive protection for your entire computer.
> Get your free trial today!
>
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
> 
> Get AOL Instant Messenger 5.1 free of charge. 
> Download Now!
>
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

Reply via email to