Package javax.wsdl.extensions.soap

Examples of javax.wsdl.extensions.soap.SOAPBinding


    String errantElements = new String("");
    // Get the binding from the entry context
    Binding binding = (Binding) entryContext.getEntry().getEntryDetail();

    // Try to get the SOAP binding
    SOAPBinding soapBinding = WSDLValidatorImpl.getSoapBinding(binding);

    if (soapBinding != null)
    {
      String style =
        (soapBinding.getStyle() == null)
          ? WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC
          : soapBinding.getStyle();
      if (style.equals(WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC))
      {
        Vector soapElements = Utils.arrayToVector(this.validator.getSoapBodies(binding));
        soapElements.addAll(Utils.arrayToVector(this.validator.getSoapFaults(binding)));
        soapElements.addAll(Utils.arrayToVector(this.validator.getSoapHeaders(binding)));
View Full Code Here


    if (binding == null)
    {
      result = AssertionResult.RESULT_NOT_APPLICABLE;
      return validator.createAssertionResult(testAssertion, result, failureDetailList);
    }
    SOAPBinding soapB = WSDLValidatorImpl.getSoapBinding(binding);
    if (soapB == null)
    {
      result = AssertionResult.RESULT_NOT_APPLICABLE;
      return validator.createAssertionResult(testAssertion, result, failureDetailList);
    }
    String styleB =
      (soapB.getStyle() == null
        ? WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC
        : soapB.getStyle());

    // Try to get the SOAP operations
    HashMap soapOperationList = validator.getSoapOperations(binding);

    if (soapOperationList.isEmpty())
View Full Code Here

   * @return a SOAP binding.
   * @throws WSIException if problems occur during processing.
   */
  public static SOAPBinding getSoapBinding(Binding binding) throws WSIException
  {
    SOAPBinding soapBinding = null;

    // Get the list of extensibility elements
    List exElements = binding.getExtensibilityElements();
    if (exElements != null)
    {
View Full Code Here

  {

    Vector bindingMatches = new Vector();

    // Check binding
    SOAPBinding soapBinding = getSoapBinding(binding);

    // check that the soap:binding for this WSDL binding is the specified style
    // ADD: check for null pointer
    if (soapBinding != null)
    {
      String defaultStyle = soapBinding.getStyle();

      if (defaultStyle == null)
      {
        defaultStyle = WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC;
      }
View Full Code Here

   * @param binding  a Binding object.
   * @return soapbind:binding.
   */
  public static SOAPBinding getSoapBinding(Binding binding)
  {
    SOAPBinding soapBinding = null;

    List extElements = null;

    // Find the soapbind:operation element
    if ((extElements = binding.getExtensibilityElements()) != null)
View Full Code Here

    // Get operation namespace from the request soap message
    String soapOpNS = getSoapBodyChild(request).getNamespaceURI();

    // Get soapbind:binding
    SOAPBinding soapBinding = null;
    if ((soapBinding = WSDLUtils.getSoapBinding(binding)) != null)
    {
      bindingStyle = soapBinding.getStyle();
    }

    // Go through each operation in the binding and check for namespace match
    Iterator operations = binding.getBindingOperations().iterator();
    while (operations.hasNext() && !(namespaceFound))
View Full Code Here

    boolean operationFound = false;

    String bindingStyle = WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC;

    // Get soapbind:binding
    SOAPBinding soapBinding = null;
    if ((soapBinding = WSDLUtils.getSoapBinding(binding)) != null)
    {
      bindingStyle = soapBinding.getStyle();
    }

    // Get the first child element from the soap body
    Element soapBodyChild = getSoapBodyChild(requestMessage);
View Full Code Here

          String style;
          if ((soapOp == null) || (style = soapOp.getStyle()) == null)
          {
            // use the style of the parent bindingOp

            SOAPBinding soapBind = WSDLValidatorImpl.getSoapBinding(tryBinding);
            //GT: move this method to utils
            if ((style = soapBind.getStyle()) == null)
            {
              style = WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC;
              //default
            }
          }
View Full Code Here

          for (Iterator index = extElem.iterator(); index.hasNext();)
          {
            Object o = (Object) index.next();
            if (o instanceof SOAPBinding)
            {
              SOAPBinding soapBinding = (SOAPBinding) o;
              if (!WSIConstants
                .NS_URI_SOAP_HTTP
                .equals(soapBinding.getTransportURI()))
              {
                throw new AssertionFailException();
              }

            }
View Full Code Here

    // Get the binding from the entry context
    Binding binding = (Binding) entryContext.getEntry().getEntryDetail();

    // Try to get the SOAP binding
    SOAPBinding soapBinding = WSDLValidatorImpl.getSoapBinding(binding);

    // Test the assertion
    // Check style to make sure that it is rpc - the subject of the assertion
    String style = WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC;
    if (soapBinding != null)
      style =
        (soapBinding.getStyle() == null
          ? WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC
          : soapBinding.getStyle());

    if ((soapBinding != null)
      && (style.equals(WSIConstants.ATTRVAL_SOAP_BIND_STYLE_RPC)))
    {
      // Get the list of SOAP body elements
View Full Code Here

TOP

Related Classes of javax.wsdl.extensions.soap.SOAPBinding

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.