Package org.jibx.ws.protocol

Examples of org.jibx.ws.protocol.Protocol


                    if (mediaType == null) {
                        mediaType = CodecDirectory.TEXT_XML_MEDIA_TYPE;
                    }
                    XmlCodec codec = m_codecCache.getCodec(mediaType);
                    IXMLReader reader = codec.getReader(m_dimeInput, null, m_clientAddress, false);
                    Protocol protocol = ProtocolDirectory.getProtocol(m_sdef.getProtocolName());
                    ServiceFactory serviceFactory = protocol.getServiceFactory();
                    serv = ServicePool.getInstance(serviceFactory, m_sdef);
                    serv.processRequest(new TcpInConnection(m_dimeInput, reader), new TcpOutConnection(codec,
                        serv.getXmlOptions()));
                    if (s_logger.isDebugEnabled()) {
                        s_logger.debug("Completed processing of receive message from " + m_clientAddress);
View Full Code Here


   
    protected Object configure(String path, String protocol, String reqtype, String[] rsptypes) {
        try {
            IBindingFactory fact = BindingDirectory.getFactory(Query.class);
            System.out.println("Connecting to service at " + path + " using protocol " + protocol);
            Protocol p = ProtocolDirectory.getProtocol(protocol);
            MessageOptions options = new MessageOptions();
            options.setOutMediaTypeCode(reqtype);
            options.setInMediaTypeCodes(rsptypes);
            return p.createClient(path, fact, options);
        } catch (Exception ex) {
            ex.printStackTrace(System.err);
            throw new RuntimeException("Error: " + ex.getMessage(), ex);
        }
    }
View Full Code Here

{
    /**
     * Test method for {@link org.jibx.ws.protocol.ProtocolDirectory#loadProtocol(java.lang.String)}.
     */
    public final void testLoadProtocol() {
        Protocol p = ProtocolDirectory.loadProtocol("org.jibx.ws.soap.SoapProtocol#SOAP1_1");
        assertSame(SoapProtocol.SOAP1_1, p);
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.protocol.Protocol

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.