Package org.codehaus.xfire.aegis

Examples of org.codehaus.xfire.aegis.Holder


        throws Exception
    {
        XFireProxyFactory xpf = getXFireProxyFactory();
        MultipleOutService client = (MultipleOutService) xpf.create(service, "xfire.local://MultipleOutService");
       
        Holder out = new Holder();
        Holder headerOut = new Holder();
        String response = client.echo("Yo Yo", out, headerOut);
       
        assertEquals("Yo Yo", response);
        assertEquals("header", (String) headerOut.getValue());
        assertEquals("hi", (String) out.getValue());
    }
View Full Code Here


    public void testHeaders() throws Exception
    {
        XFireProxyFactory xpf = new XFireProxyFactory(getXFire());
        Echo echo = (Echo) xpf.create(service, "xfire.local://Echo");
       
        Holder h = new Holder();
        assertEquals("hi", echo.echo("hi", h));
        assertEquals("header2", h.getValue());
       
        Document wsdl = getWSDLDocument("Echo");

        addNamespace("wsdlsoap", WSDLBuilder.WSDL11_SOAP_NS);
        assertValid("//wsdl:input/wsdlsoap:header[@message='tns:echoRequestHeaders'][@part='in0']", wsdl);
View Full Code Here

        return o;
    }

    protected void setValue(Object hObj, Object value)
    {
        Holder holder = (Holder) hObj;
        holder.setValue(value);
    }
View Full Code Here

    }

    public void writeObject(Object object, MessageWriter writer, MessageContext context)
        throws XFireFault
    {
        Holder holder = (Holder) object;
        delegate.writeObject(holder.getValue(), writer, context);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.aegis.Holder

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.