Package org.codehaus.xfire.util.dom

Examples of org.codehaus.xfire.util.dom.DOMInHandler


        Properties outProperties = new Properties();
        configureOutProperties(outProperties);
        client.addOutHandler(new WSS4JOutHandler(outProperties));
       
        // Configure incoming secuirty
        client.addInHandler(new DOMInHandler());
        Properties inProperties = new Properties();
        configureInProperties(inProperties);
        client.addInHandler(new WSS4JInHandler(inProperties));
       
        System.out.print("Looking for isbn : 0123456789 ....");
View Full Code Here


        super.setUp();
        AnnotationServiceFactory asf = new JaxbServiceFactory(getXFire().getTransportManager());
        service = asf.create(EchoRpcLit.class);
        server = new EchoRpcLit();
        service.setInvoker(new BeanInvoker(server));
        service.addInHandler(new DOMInHandler());
        service.addInHandler(new LoggingHandler());
       
        getServiceRegistry().register(service);
    }
View Full Code Here

    }
   
    public void testBinaryWithDOM() throws Exception
    {
        Service service = getServiceFactory().create(BinaryDataService.class);
        service.addInHandler(new DOMInHandler());
        getServiceRegistry().register(service);
       
        runTests();
    }
View Full Code Here

     * @throws Exception
     */
    public void testServiceWithDOMMode()
            throws Exception
    {
        service.addInHandler(new DOMInHandler());
        service.addOutHandler(new DOMOutHandler());
       
        MessagePartInfo info = (MessagePartInfo)
            service.getServiceInfo().getOperation("GetWeatherByZipCode").getInputMessage().getMessageParts().get(0);

View Full Code Here

        super.setUp();
       
        service = getServiceFactory().create(Echo.class, "Echo", null, null);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);
       
        service.addInHandler(new DOMInHandler());
        service.addOutHandler(new DOMOutHandler());

        wsIn = new WSS4JInHandler();
        wsIn.setProperty(WSHandlerConstants.SIG_PROP_FILE, "META-INF/xfire/insecurity.properties");
        wsIn.setProperty(WSHandlerConstants.DEC_PROP_FILE, "META-INF/xfire/insecurity.properties");
        wsIn.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS, TestPwdCallback.class.getName());

        service.addInHandler(wsIn);
       
        wsOut = new WSS4JOutHandler();
        wsOut.setProperty(WSHandlerConstants.SIG_PROP_FILE, "META-INF/xfire/outsecurity.properties");
        wsOut.setProperty(WSHandlerConstants.ENC_PROP_FILE, "META-INF/xfire/outsecurity.properties");
        wsOut.setProperty(WSHandlerConstants.USER, "myAlias");
        wsOut.setProperty("password", "myAliasPassword");
        wsOut.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT);
        wsOut.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS, TestPwdCallback.class.getName());
        service.addOutHandler(wsOut);
       
        getServiceRegistry().register(service);
       
        // Create the client
        XFireProxyFactory pFactory = new XFireProxyFactory(getXFire());
        echo = (Echo) pFactory.create(service, "xfire.local://Echo");
       
        client = ((XFireProxy) Proxy.getInvocationHandler(echo)).getClient();
        client.addInHandler(wsIn);
        client.addInHandler(new DOMInHandler());
        client.addOutHandler(wsOut);
        client.addOutHandler(new DOMOutHandler());
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.util.dom.DOMInHandler

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.