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

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


            configParams = readConfigFile(_installDir + "/conf/httpd.conf");
        }
       
        catch (IOException error)
        {
            throw new SoapFault("Error while reading httpd.conf.", error);
        }
       
        _name = readName(configParams);
        _port = readPort(configParams);
        _languages = readLanguages(configParams);
View Full Code Here


           
        catch (Exception error)
        {
            Object[] filler = { uri };
            String message = _MESSAGES.get("InvalidAddressURI", filler);
            throw new SoapFault(message, error);
        }
       
        Document doc = _xml.getOwnerDocument();
       
        //
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

            return XmlUtils.getDate(xml);
        }
       
        catch (ParseException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

        throws SoapFault
    {
        Element[] children = XmlUtils.getElements(xml, MuwsConstants.REQUESTED_TYPE_QNAME);
       
        if (children.length == 0)
            throw new SoapFault(_MESSAGES.get("NoRequestedTypes"));
       
        _types = new QName[children.length];
       
        for (int n = 0; n < children.length; ++n)
            _types[n] = XmlUtils.getQName(children[n]);
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();
        getFileNumbersByEPR().remove(epr);
    }
View Full Code Here

            return new URI(uri);
        }
       
        catch (URISyntaxException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

            return new URL(url);
        }
       
        catch (MalformedURLException error)
        {
            throw new SoapFault(error.getMessage(), error);
        }
    }
View Full Code Here

            return method.invoke(proxy, parameters);
        }
       
        catch (Exception error)
        {
            throw new SoapFault(error);
        }
    }
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.