Examples of OperationInfo


Examples of org.codehaus.xfire.service.OperationInfo

        Service endpoint = annotationServiceFactory.create(EchoServiceImpl.class);
        ServiceInfo service = endpoint.getServiceInfo();
        assertEquals(new QName("http://xfire.codehaus.org/EchoService", "Echo"), endpoint.getName());

        final OperationInfo operation = service.getOperation("echo");
        assertNotNull(operation);

        Collection parts = operation.getInputMessage().getMessageParts();
        assertEquals(1, parts.size());
        assertEquals("input", ((MessagePartInfo) parts.iterator().next()).getName().getLocalPart());

        webAnnotationsControl.verify();
    }
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

        webAnnotationsControl.replay();

        Service service = annotationServiceFactory.create(EchoServiceImpl.class);
        AbstractSoapBinding binding = (AbstractSoapBinding) service.getBindings().iterator().next();
       
        OperationInfo op = service.getServiceInfo().getOperation("echo");
        assertNotNull(op);
        assertEquals(SoapConstants.USE_LITERAL, binding.getUse());
       
        webAnnotationsControl.verify();
    }
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

       
        BeanType type = new BeanType();
        tm.register(SimpleBean.class, new QName("urn:Bean", "SimpleBean"), type);
       
        ServiceInfo info = service.getServiceInfo();
        OperationInfo o = info.getOperation("getSubmitBean");
        MessageInfo inMsg = o.getInputMessage();
        MessagePartInfo p = inMsg.getMessagePart(new QName("urn:Bean", "bean"));
        p.setSchemaType(type);
       
        o = info.getOperation("getSimpleBean");
        MessageInfo outMsg = o.getOutputMessage();
        p = outMsg.getMessagePart(new QName("urn:Bean", "getSimpleBeanout"));
        p.setSchemaType(type);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

       
        Client client = new Client(binding, "xfire.local://" + service.getSimpleName());
        client.setXFire(getXFire());
        client.setTransport(getTransportManager().getTransport(LocalTransport.BINDING_ID));
       
        OperationInfo op = service.getServiceInfo().getOperation("echo");

        Object[] response = client.invoke(op, new Object[] {"hello"});

        assertNotNull(response);
        assertEquals(1, response.length);
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

        server.setPort(8191);
        server.start();
       
        Client client = new Client(new URL("http://localhost:8191/Echo?wsdl"));
       
        OperationInfo op = client.getService().getServiceInfo().getOperation("echo");

        Object[] response = client.invoke(op, new Object[] {"hello"});

        assertNotNull(response);
        assertEquals(1, response.length);
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

        type.setTypeClass(SimpleBean.class);
        type.setSchemaType(new QName("urn:ReallyNotSoSimpleBean", "SimpleBean"));
        type.setTypeMapping(tm);
       
        ServiceInfo info = service.getServiceInfo();
        OperationInfo o = info.getOperation("getSubmitBean");
        MessageInfo inMsg = o.getInputMessage();
        MessagePartInfo p = inMsg.getMessagePart(new QName(service.getTargetNamespace(), "bean"));
        p.setSchemaType(type);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

    public void testVoidAsync()
            throws Exception
    {
        Service endpoint = getServiceRegistry().getService("VoidService");
        OperationInfo op = endpoint.getServiceInfo().getOperation("doNothing");
        op.setAsync(true);
        op.setMEP(SoapConstants.MEP_IN);
        op.setOutputMessage(null);
       
        Document response =
                invokeService("VoidService",
                              "/org/codehaus/xfire/message/wrapped/voidRequest.xml");
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo

    public void testAsyncWSDL()
            throws Exception
    {
        Service endpoint = getServiceRegistry().getService("VoidService");
        OperationInfo op = endpoint.getServiceInfo().getOperation("doNothing");
        op.setAsync(true);
        op.setMEP(SoapConstants.MEP_IN);

        Document doc = getWSDLDocument("VoidService");

        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("wsdlsoap", WSDLWriter.WSDL11_SOAP_NS);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.