Package org.jibx.ws

Examples of org.jibx.ws.WsBindingException


                "Binding definition lookup error: both binding and package name must be set.");
        }
        try {
            factory = BindingDirectory.getFactory(m_bindingName, m_packageName);
        } catch (JiBXException e) {
            throw new WsBindingException("Error accessing binding for binding '" + m_bindingName + "' with package '"
                + m_packageName + "'.", e);
        }

        return factory;
    }
View Full Code Here


    public UnmarshallingPayloadReader(Class clazz) throws WsBindingException {
        IBindingFactory factory;
        try {
            factory = BindingDirectory.getFactory(clazz);
        } catch (JiBXException e) {
            throw new WsBindingException("Error accessing binding.", e);
        }

        m_unmarshallCtx = createUnmarshallingContext(factory);
    }
View Full Code Here

    public UnmarshallingPayloadReader(String bindingName, String packageName) throws WsBindingException {
        IBindingFactory factory;
        try {
            factory = BindingDirectory.getFactory(bindingName, packageName);
        } catch (JiBXException e) {
            throw new WsBindingException("Error accessing binding.", e);
        }
       
        m_unmarshallCtx = createUnmarshallingContext(factory);
    }
View Full Code Here

    private UnmarshallingContext createUnmarshallingContext(IBindingFactory factory) throws WsBindingException {
        UnmarshallingContext ctx = null;
        try {
            ctx = (UnmarshallingContext) factory.createUnmarshallingContext();
        } catch (JiBXException e) {
            throw new WsBindingException("Unable to create UnmarshallingContext.", e);
        }
        return ctx;
    }
View Full Code Here

    public MarshallingPayloadWriter(Class clazz) throws WsBindingException {
        IBindingFactory factory;
        try {
            factory = BindingDirectory.getFactory(clazz);
        } catch (JiBXException e) {
            throw new WsBindingException("Error accessing binding.", e);
        }

        m_marshaller = createMarshaller(factory);
        m_namespaces = m_marshaller.getNamespaces();
    }
View Full Code Here

    public MarshallingPayloadWriter(String bindingName, String packageName) throws WsBindingException {
        IBindingFactory factory;
        try {
            factory = BindingDirectory.getFactory(bindingName, packageName);
        } catch (JiBXException e) {
            throw new WsBindingException("Error accessing binding.", e);
        }

        m_marshaller = createMarshaller(factory);
        m_namespaces = m_marshaller.getNamespaces();
    }
View Full Code Here

    private MarshallingContext createMarshaller(IBindingFactory factory) throws WsBindingException {
        MarshallingContext marshaller;
        try {
            marshaller = (MarshallingContext) factory.createMarshallingContext();
        } catch (JiBXException e) {
            throw new WsBindingException("Unable to create MarshallingContext.", e);
        }
        return marshaller;
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.WsBindingException

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.