Package org.jibx.ws

Examples of org.jibx.ws.WsConfigurationException


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


    /**
     * {@inheritDoc}
     */
    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 message body");
        }

        Processor processor = getProcessor();

View Full Code Here

                try {
                    int portnum = Integer.parseInt(port);
                    m_socket = new Socket(host, portnum);
                    m_socket.setTcpNoDelay(true);
                } catch (NumberFormatException e) {
                    throw new WsConfigurationException("Error parsing port number for endpoint '" + endpoint + '\'', e);
                } catch (IOException e) {
                    throw new WsConfigurationException("Unable to create socket connection to endpoint '" + endpoint
                        + '\'', e);
                }
            } else {
                throw new WsConfigurationException("Missing port number in endpoint '" + endpoint + '\'');
            }
            m_codecCache = new CodecCache();
        } else {
            throw new IllegalArgumentException("Endpoint '" + endpoint + "' is not using the tcp protocol");
        }
View Full Code Here

            throws WsConfigurationException {

        if (hsodef.getInputStreamInterceptorDefinition() != null) {
            Object interceptor = hsodef.getInputStreamInterceptorDefinition().getObject();
            if (!(interceptor instanceof InputStreamInterceptor)) {
                throw new WsConfigurationException("Error: Interceptor class '" + interceptor.getClass()
                    + "' must implement InputStreamInterceptor");
            }
            m_inputStreamInterceptor = (InputStreamInterceptor) interceptor;
        }
        if (hsodef.getOutputStreamInterceptorDefinition() != null) {
            Object interceptor = hsodef.getOutputStreamInterceptorDefinition().getObject();
            if (!(interceptor instanceof OutputStreamInterceptor)) {
                throw new WsConfigurationException("Error: Interceptor class '" + interceptor.getClass()
                    + "' must implement OutputStreamInterceptor");
            }
            m_outputStreamInterceptor = (OutputStreamInterceptor) interceptor;
        }
    }
View Full Code Here

                    return new Operation(opdef, method, idxs);
                }
            }
        }

        throw new WsConfigurationException("Method " + methodName + " not found in " + serviceClass.getName()
            + " with expected signature");
    }
View Full Code Here

            if (m_serviceObject != null) {
                m_serviceClass = m_serviceObject.getClass();
            } else {
                m_serviceClass = Utility.loadClass(m_serviceClassName);
                if (m_serviceClass == null) {
                    throw new WsConfigurationException("Service class " + m_serviceClassName
                        + " not found in classpath");
                }
            }
        }
        return m_serviceClass;
View Full Code Here

            throws WsConfigurationException {
       
        if (serviceExceptionHandlerClassName != null) {
            m_serviceExceptionHandlerClass = Utility.loadClass(serviceExceptionHandlerClassName);
            if (m_serviceExceptionHandlerClass == null) {
                throw new WsConfigurationException("Fault handler class " + serviceExceptionHandlerClassName
                    + " not found in classpath");
            }
        }
    }
View Full Code Here

            throws WsConfigurationException {
       
        if (outputCompletionListenerClassName != null) {
            m_outputCompletionListenerClass = Utility.loadClass(outputCompletionListenerClassName);
            if (m_outputCompletionListenerClass == null) {
                throw new WsConfigurationException("Output Listener class " + outputCompletionListenerClassName
                    + " not found in classpath");
            }
        }
    }
View Full Code Here

     */
    public IBindingFactory getBindingFactory() throws WsBindingException, WsConfigurationException {
        IBindingFactory factory = null;

        if (m_bindingName == null || m_packageName == null) {
            throw new WsConfigurationException(
                "Binding definition lookup error: both binding and package name must be set.");
        }
        try {
            factory = BindingDirectory.getFactory(m_bindingName, m_packageName);
        } catch (JiBXException e) {
View Full Code Here

         * @throws WsConfigurationException on error configuring interceptor, for example more than one input stream
         * interceptor is configured
         */
        public void setInterceptor(InputStreamInterceptor interceptor) throws WsConfigurationException  {
            if (m_interceptor != null) {
                throw new WsConfigurationException("Only a single input stream interceptor is supported.");
            }
            m_interceptor = interceptor;
        }
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.