Package org.apache.muse.ws.addressing.soap

Examples of org.apache.muse.ws.addressing.soap.SoapFault


        //
        // faults that aren't network or location-related will be packaged
        // in the response's SOAP body, so we need to parse and check
        //
        if (SoapUtils.isFault(response[0]))
            throw new SoapFault(response[0]);
       
        return response[0];
    }
View Full Code Here


        Capability capability = getCapabilityForAction(action);
       
        if (capability == null)
        {
            Object[] filler = { getContextPath(), action };
            SoapFault fault = new SoapFault(_MESSAGES.get("ActionNotSupported", filler));
            return fault.toXML();
        }
       
        MessageHandler handler = capability.getMessageHandler(action);
        Method method = handler.getMethod();
       
        Object[] parameters = null;
       
        try
        {
            //
            // translate from XML -> POJO. the reflection call will take
            // care of casting the generic Object references to the actual
            // method parameter types
            //
            parameters = handler.fromXML(soapBody);
           
            //
            // invoke operation and translate result to XML
            //
            Object result = method.invoke(capability, parameters);
           
            return handler.toXML(result);
        }
       
        catch (Throwable error)
        {
            //
            // the exception is the generic reflection error, and useless
            // to the programmer - we want to report on the REAL cause
            //
            Throwable cause = error.getCause();
           
            if (cause != null// sanity check
                error = cause;
           
            Logger log = getLog();
           
            //
            // log the details of de-serialization and reflection
            //
            if (parameters != null)
                LoggingUtils.logCall(log, method, parameters);
           
            LoggingUtils.logError(log, error);
           
            SoapFault response = SoapUtils.convertToFault(error);
            return response.toXML();
        }
    }
View Full Code Here

    {
        //
        // error - we've already been here
        //
        if (hasBeenShutdown())
            throw new SoapFault(_MESSAGES.get("ResourceAlreadyDestroyed"));
               
        ResourceManager manager = getResourceManager();

        //
        // remove resource visibility
View Full Code Here

        // in the persistence impl
        //
        if (results.length == 0)
        {
            Object[] filler = { "\n\n" + epr };
            throw new SoapFault(_MESSAGES.get("NoFileForEPR", filler));
        }
       
        results[0].delete();
        fileNumbersByEPR.remove(epr);
    }
View Full Code Here

        if (elements.length != parameters.length)
        {
            Object[] filler = {
                method.getName(), new Integer(parameters.length), new Integer(elements.length)       
            };
            throw new SoapFault(_MESSAGES.get("IncorrectParams", filler));
        }

        SerializerRegistry registry = SerializerRegistry.getInstance();
       
        //
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.addressing.soap.SoapFault

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.