Package org.codehaus.xfire.soap

Examples of org.codehaus.xfire.soap.AbstractSoapBinding


       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoResponse"), part.getName());
       
        // Is the SOAP binding stuff around?
        AbstractSoapBinding soapBinding = (AbstractSoapBinding) service.getBindings().iterator().next();
        assertNotNull(soapBinding);
        assertEquals("literal", soapBinding.getUse());
        assertEquals("", soapBinding.getSoapAction(opInfo));
       
        MessagePartContainer c = soapBinding.getHeaders(opInfo.getInputMessage());
        assertEquals(1, c.getMessageParts().size());
        part = c.getMessagePart(new QName("urn:Echo", "echoHeader"));
        assertNotNull(part);
       
        Collection endpoints = service.getEndpoints();
View Full Code Here


       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoResponse"), part.getName());
       
        // Is the SOAP binding stuff around?
        AbstractSoapBinding soapOp = (AbstractSoapBinding) service.getBindings().iterator().next();
        assertNotNull(soapOp);
        assertEquals("literal", soapOp.getUse());
        assertEquals("", soapOp.getSoapAction(opInfo));
       
        Collection endpoints = service.getEndpoints();
        assertEquals(1, endpoints.size());
       
        Endpoint endpoint = (Endpoint) endpoints.iterator().next();
View Full Code Here

       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echo2Response"), part.getName());
       
        // Is the SOAP binding stuff around?
        AbstractSoapBinding binding = (AbstractSoapBinding) service.getBinding(new QName("urn:Echo", "EchoHttpBinding"));
        assertNotNull(binding);
        assertEquals("literal", binding.getUse());
        //assertEquals("urn:Echo/echo2", binding.getSoapAction(opInfo));
       
    }
View Full Code Here

        assertEquals(new QName("http://binding.service.xfire.codehaus.org", "Echo"), endpoint.getName());
        assertTrue(endpoint.getFaultSerializer() instanceof SoapFaultSerializer);
       
        assertTrue(service.isWrapped());
       
        AbstractSoapBinding soapOp = (AbstractSoapBinding) endpoint.getBindings().iterator().next();
        assertEquals(SoapConstants.USE_LITERAL, soapOp.getUse());
    }
View Full Code Here

                                                       properties);
        assertNotNull(endpoint);
        ServiceInfo service = endpoint.getServiceInfo();
        assertEquals(new QName("http://xfire.codehaus.org", "EchoService"), endpoint.getName());
       
        AbstractSoapBinding binding = (AbstractSoapBinding) endpoint.getBindings().iterator().next();
        assertEquals(SoapConstants.STYLE_RPC, binding.getStyle());
        assertEquals(SoapConstants.USE_ENCODED, binding.getUse());

        assertEquals(3, endpoint.getBindings().size());
    }
View Full Code Here

                                                       properties);
        assertNotNull(endpoint);
        ServiceInfo service = endpoint.getServiceInfo();
        assertEquals(new QName("http://binding.service.xfire.codehaus.org", "Echo"), endpoint.getName());

        AbstractSoapBinding binding = (AbstractSoapBinding) endpoint.getBindings().iterator().next();
        assertEquals(SoapConstants.STYLE_RPC, binding.getStyle());
        assertEquals(SoapConstants.USE_ENCODED, binding.getUse());
    }
View Full Code Here

        ServiceInfo info = service.getServiceInfo();
       
        MessageInfo inMsg =info.getOperation("doSomething").getInputMessage();
        assertEquals(1, inMsg.getMessageParts().size());
       
        AbstractSoapBinding soapOp = (AbstractSoapBinding) service.getBindings().iterator().next();
        MessagePartInfo part = soapOp.getHeaders(inMsg).getMessagePart(new QName(service.getName().getNamespaceURI(), "header"));
        assertNotNull(part);
    }
View Full Code Here

       
        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

        builder.setTransportManager(getTransportManager());
        builder.build();
       
        Service service = (Service) builder.getAllServices().iterator().next();
        assertTrue(service.getBindingProvider() instanceof AegisBindingProvider);
        AbstractSoapBinding binding = (AbstractSoapBinding) service.getBindings().iterator().next();
       
        Client client = new Client(binding, "xfire.local://" + service.getSimpleName());
        client.setXFire(getXFire());
        client.setTransport(getTransportManager().getTransport(LocalTransport.BINDING_ID));
       
View Full Code Here

        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
        XMLStreamWriter writer = getTransformer().getOutputFactory()
            .createXMLStreamWriter(outStream, message.getEncoding());
        MessageSerializer serializer = context.getOutMessage().getSerializer();
        if (serializer == null) {
            AbstractSoapBinding binding = (AbstractSoapBinding) context.getBinding();
            if (binding == null) {
                throw new XFireException("Couldn't find the binding!");
            }
            serializer = AbstractSoapBinding.getSerializer(binding.getStyle(), binding.getUse());
        }
        serializer.writeMessage(message, writer, context);
        writer.close();
        outStream.close();
        return new StreamSource(new ByteArrayInputStream(outStream.toByteArray()));
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.soap.AbstractSoapBinding

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.