Package org.codehaus.xfire.soap

Examples of org.codehaus.xfire.soap.SoapVersion


    public void testIQ()
        throws Exception
    {
        new SoapIQProvider();
    
        SoapVersion v11 = Soap11.getInstance();
        Object provider = ProviderManager.getIQProvider(v11.getEnvelope().getLocalPart(),
                                                        v11.getEnvelope().getNamespaceURI());
        assertNotNull("Got null provider for " + v11.getEnvelope().getLocalPart()
                + " in namespace " + v11.getEnvelope().getNamespaceURI(), provider);
        assertTrue(provider instanceof SoapIQProvider);
    }
View Full Code Here


    }
   
    public String getSoapContentType()
    {
        String ct;
        SoapVersion soap = msg.getSoapVersion();
        if (soap instanceof Soap11)
        {
            ct = "text/xml";
        }
        else if (soap instanceof Soap12)
View Full Code Here

        String wsdlUrl = config.getChild("wsdl").getValue("");


        Class clazz = getClass().getClassLoader().loadClass(serviceClass);
        Service service;
        SoapVersion version = null;
        if (soapVersion.equals("1.1"))
        {
            version = Soap11.getInstance();
        }
        else if (soapVersion.equals("1.2"))
View Full Code Here

        return "Http";
    }

    public Binding findBinding(MessageContext context, Service service)
    {
        SoapVersion version = context.getCurrentMessage().getSoapVersion();
       
        if (version instanceof Soap11)
        {
            return service.getBinding(SOAP11_HTTP_BINDING);
        }
View Full Code Here

        return false;
    }

    public Binding findBinding(MessageContext context, Service service)
    {
        SoapVersion soapVersion = context.getCurrentMessage().getSoapVersion();
        for (Iterator itr = service.getBindings().iterator(); itr.hasNext();)
        {
            Binding binding = (Binding) itr.next();
            if (binding.getBindingId().equals(getSupportedBindings()[0]) &&
                    ((binding instanceof Soap11Binding && soapVersion instanceof Soap11) ||
View Full Code Here

        throws Exception
    {
        if (context.getInMessage().getHeader() == null)
            return;

        SoapVersion version = context.getInMessage().getSoapVersion();
        List elements = context.getInMessage().getHeader().getChildren();
        for (int i = 0; i < elements.size(); i++)
        {
            Element e = (Element) elements.get(i);
            String mustUnderstand = e.getAttributeValue("mustUnderstand",
                    Namespace.getNamespace(version.getNamespace()));

            if (mustUnderstand != null && ( mustUnderstand.equals("1") ||  (version == Soap12.getInstance() &&  mustUnderstand.equals("true"))) )
            {
                assertUnderstandsHeader(context, new QName(e.getNamespaceURI(), e.getName()));
            }
View Full Code Here

    }

    public static String getSoapMimeType(AbstractMessage msg, boolean includeEncoding)
    {
        StringBuffer ct = new StringBuffer();
        SoapVersion soap = msg.getSoapVersion();
        if (soap instanceof Soap11)
        {
            ct.append("text/xml");
        }
        else if (soap instanceof Soap12)
View Full Code Here

TOP

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

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.