Examples of MessagePartInfo


Examples of org.apache.cxf.service.model.MessagePartInfo

            processInput(method, inputMessage);
            return;
        } else if (inputParts.isEmpty()) {
            return;
        }
        MessagePartInfo part = inputParts.iterator().next();

        List<QName> wrappedElements = ProcessorUtil.getWrappedElementQNames(context, part.getElementQName());
        if ((wrappedElements == null || wrappedElements.size() == 0)
            && countOutOfBandHeader(inputMessage) == 0) {
            return;
        }
        for (QName item : wrappedElements) {
            JavaParameter jp = getParameterFromQName(part.getElementQName(),
                                  item, JavaType.Style.IN, part);
           
            if (StringUtils.isEmpty(part.getConcreteName().getNamespaceURI())) {
                jp.setTargetNamespace("");
            }

            addParameter(method, jp);
        }
View Full Code Here

Examples of org.apache.cxf.service.model.MessagePartInfo

                        continue;
                    }
                    oob = true;
                }
               
                MessagePartInfo inpart = inputPartsMap.get(outpart.getName());
                if (inpart == null) {
                    outParts.add(outpart);
                    if (oob) {
                        numHeader++;
                    }
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

        String ns = "urn:AddNumbers";
        Service service = getServiceFactory().create(AddNumbers.class, "AddNumbers", ns, null);
       
        OperationInfo operation = service.getServiceInfo().getOperation("add");
       
        MessagePartInfo v1 = operation.getInputMessage().getMessagePart(new QName(ns, "value1"));
        assertNotNull(v1);
       
        MessagePartInfo v2 = operation.getInputMessage().getMessagePart(new QName(ns, "value2"));
        assertNotNull(v2);
       
        MessagePartInfo sum = operation.getOutputMessage().getMessagePart(new QName(ns, "sum"));
        assertNotNull(sum);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

   
    public void testService() throws Exception
    {
        OperationInfo operation = service.getServiceInfo().getOperation("makeCall");
       
        MessagePartInfo part = (MessagePartInfo) operation.getOutputMessage().getMessageParts().get(0);
        assertTrue(part.isSchemaElement());
        assertEquals("http://test.bt.com/2006/08/Service/Schema", part.getName().getNamespaceURI());
       
        Document res = invokeService("XFireNamespaceProblemService", "/org/codehaus/xfire/x582/callmessage.xml");
       
        addNamespace("b", "http://test.bt.com/2006/08/Service/Schema");
        assertValid("//b:makeCallResponse/b:status", res);
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

    }

    public void testService()
        throws Exception
    {
        MessagePartInfo info = (MessagePartInfo) endpoint.getServiceInfo()
                .getOperation("GetWeatherByZipCode").getInputMessage().getMessageParts().get(0);

        Document response = invokeService("WeatherService", "GetWeatherByZip.xml");

        addNamespace("w", "http://www.webservicex.net");
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

        ServiceRegistry reg = (ServiceRegistry) getBean("xfire.serviceRegistry");
        assertTrue(reg.hasService("Echo"));
       
        Service service = reg.getService("Echo");
        OperationInfo operation = service.getServiceInfo().getOperation("echo");
        MessagePartInfo mp = (MessagePartInfo) operation.getInputMessage().getMessageParts().get(0);

        AegisBindingProvider bp = (AegisBindingProvider) getBean("xfire.aegisBindingProvider");
       
        TypeMapping dtypeMapping = bp.getTypeMappingRegistry().getDefaultTypeMapping();
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

        OperationInfo opInfo = service.getServiceInfo().getOperation("concat");
        assertNotNull(opInfo);
       
        assertEquals(2, opInfo.getInputMessage().size());

        MessagePartInfo part = opInfo.getInputMessage().getMessagePart(new QName("urn:concat-service", "s1"));
        assertNotNull(part);
       
        opInfo = service.getServiceInfo().getOperation("concatThreeStrings");
        assertNotNull(opInfo);
       
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

        getServiceRegistry().register(endpoint);
    }
   
    public void testParams() throws Exception
    {
        MessagePartInfo info = (MessagePartInfo)
            endpoint.getServiceInfo().getOperation("GetWeatherByZipCode").getInputMessage().getMessageParts().get(0);

        assertEquals(new QName("http://codehaus.org/xfire/xmlbeans", "request"), info.getName());
    }
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

    }

    public void testService()
            throws Exception
    {
        MessagePartInfo info = (MessagePartInfo)
                endpoint.getServiceInfo().getOperation("GetWeatherByZipCode").getInputMessage().getMessageParts().get(0);

        Document response = invokeService("WeatherService", "GetWeatherByZip.xml");

        addNamespace("w", "http://www.webservicex.net");
View Full Code Here

Examples of org.codehaus.xfire.service.MessagePartInfo

        assertNotNull(message);
       
        Collection parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoRequest"), part.getName());
       
        // Check the output message
        message = opInfo.getOutputMessage();
        assertNotNull(message);
       
        parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        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());
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.