Package org.jibx.ws

Examples of org.jibx.ws.WsConfigurationException


         * @throws WsConfigurationException on error configuring interceptor, for example more than one output stream
         * interceptor is configured
         */
        public void setInterceptor(OutputStreamInterceptor interceptor) throws WsConfigurationException {
            if (m_interceptor != null) {
                throw new WsConfigurationException("Only a single output stream interceptor is supported.");
            }
            this.m_interceptor = interceptor;
        }
View Full Code Here


            throws WsConfigurationException {
        try {
            URL url = new URL(endpoint);
            return new HttpChannel(url, (HttpTransportOptions)transportOptions);
        } catch (MalformedURLException e) {
            throw new WsConfigurationException("Unable to create URL for endpoint '" + endpoint + '\'', e);
        }
    }
View Full Code Here

        postInit();
    }

    private Class loadClass(String className) throws WsConfigurationException {
        if (className == null) {
            throw new WsConfigurationException("Definition must contain the " + m_typeDesc + " class name.");
        }
        Class clazz = Utility.loadClass(className);
        if (clazz == null) {
            throw new WsConfigurationException("Class " + className + " not found in classpath");
        }
        return clazz;
    }
View Full Code Here

        Arrays.fill(paramTypes, String.class);
       
        try {
            return clazz.getConstructor(paramTypes);
        } catch (SecurityException e) {
            throw new WsConfigurationException("Error getting constructor for " + m_typeDesc + " class '"
                + clazz + "' with arguments " + Utility.toString(args) + ".", e);
        } catch (NoSuchMethodException e) {
            throw new WsConfigurationException("Unable to find constructor for " + m_typeDesc + " class '"
                + clazz + "' with arguments " + Utility.toString(args) + ".", e);
        }
    }
View Full Code Here

        }
       
        try {
            return m_constructor.newInstance(m_args);
        } catch (Exception e) {
            throw new WsConfigurationException("Error constructing " + m_typeDesc + " class '"
                + m_className + "' with arguments " + Utility.toString(m_args) + ".", e);
        }
       
    }
View Full Code Here

     * @throws WsConfigurationException if the list contains objects of type other than {@link OutHandler}s.
     */
    public void setOutHeaderHandlers(List outHeaderHandlers) throws WsConfigurationException {
        for (Iterator iter = outHeaderHandlers.iterator(); iter.hasNext();) {
            if (!(iter.next() instanceof OutHandler)) {
                throw new WsConfigurationException(
                    "The list passed to setOutHeaderHandlers must only contain objects of type OutHandler");
            }
        }
        m_outHeaderHandlers = outHeaderHandlers;
        setModified(true);
View Full Code Here

     * @throws WsConfigurationException if the list contains objects of type other than {@link InHandler}s.
     */
    public void setInHeaderHandlers(List inHeaderHandlers) throws WsConfigurationException {
        for (Iterator iter = inHeaderHandlers.iterator(); iter.hasNext();) {
            if (!(iter.next() instanceof InHandler)) {
                throw new WsConfigurationException(
                    "The list passed to setInHeaderHandlers must only contain objects of type InHandler");
            }
        }
        m_inHeaderHandlers = inHeaderHandlers;
        setModified(true);
View Full Code Here

     * @throws SoapFaultException if the service returns a SOAP fault, and a custom {@link SoapFaultResolver} has not
     * been set.
     */
    public Object call(Object request) throws IOException, WsException {
        if (getBodyWriter() == null && request != null) {
            throw new WsConfigurationException(
                "Binding factory or handler must be defined for the outbound SOAP body");
        }

        Processor processor = getProcessor();
        m_outCtx.setBody(request);
View Full Code Here

        try {
            Class clazz = Class.forName(className);
            m_marshaller = new MarshallingPayloadWriter(clazz);
            m_attributeName = attributeName;
        } catch (ClassNotFoundException e) {
            throw new WsConfigurationException("Unable to create ContextualPayloadMarshaller.  Class not found: "
                + className);
        }
    }
View Full Code Here

     * @throws WsConfigurationException if protocolName is unknown
     */
    public static Protocol getProtocol(String protocolName) throws WsConfigurationException {
        Protocol protocol = (Protocol) s_protocolMap.get(protocolName);
        if (protocol == null) {
            throw new WsConfigurationException("Unknown protocol '" + protocolName);
        }
        return protocol;
    };
View Full Code Here

TOP

Related Classes of org.jibx.ws.WsConfigurationException

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.