Package org.eclipse.wst.wsdl.binding.soap

Examples of org.eclipse.wst.wsdl.binding.soap.SOAPBody


    // Is it worth being smarter?  Look for matching content first and create those which aren't found????
    List removeList = new ArrayList(bindingInput.getEExtensibilityElements());
    removeExtensebilityElements(bindingInput.getEExtensibilityElements(), removeList);

    SOAPFactory soapFactory = SOAPFactory.eINSTANCE;
    SOAPBody soapBody = soapFactory.createSOAPBody();
    soapBody.setUse((getUseOption(null) == USE_ENCODED) ? "encoded" : "literal");
    if (getUseOption(bindingInput) == USE_ENCODED && getStyleOption(bindingInput) == STYLE_RPC)
    {
      List encodingList = new BasicEList();
      encodingList.add("http://schemas.xmlsoap.org/soap/encoding/");
      soapBody.setEncodingStyles(encodingList);
      soapBody.setNamespaceURI(getNamespace(bindingInput));
    }
    else if (getUseOption(bindingInput) == USE_LITERAL && getStyleOption(bindingInput) == STYLE_RPC)
    {
      soapBody.setNamespaceURI(getNamespace(bindingInput));
    }

    bindingInput.addExtensibilityElement(soapBody);
  }
View Full Code Here


    // Is it worth being smarter?  Look for matching content first and create those which aren't found????
    List removeList = new ArrayList(bindingOutput.getEExtensibilityElements());
    removeExtensebilityElements(bindingOutput.getEExtensibilityElements(), removeList);

    SOAPFactory soapFactory = SOAPFactory.eINSTANCE;
    SOAPBody soapBody = soapFactory.createSOAPBody();
    soapBody.setUse((getUseOption(bindingOutput) == USE_ENCODED) ? "encoded" : "literal");
    if (getUseOption(bindingOutput) == USE_ENCODED && getStyleOption(bindingOutput) == STYLE_RPC)
    {
      List encodingList = new BasicEList();
      encodingList.add("http://schemas.xmlsoap.org/soap/encoding/");
      soapBody.setEncodingStyles(encodingList);
      soapBody.setNamespaceURI(getNamespace(bindingOutput));
    }
    else if (getUseOption(bindingOutput) == USE_LITERAL && getStyleOption(bindingOutput) == STYLE_RPC)
    {
      soapBody.setNamespaceURI(getNamespace(bindingOutput));
    }

    bindingOutput.addExtensibilityElement(soapBody);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsdl.binding.soap.SOAPBody

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.