Package org.eclipse.wst.wsi.internal.core.analyzer

Examples of org.eclipse.wst.wsi.internal.core.analyzer.AssertionPassException


      // gets first child of message
      Element soapMessagePart = XMLUtils.getFirstChild(soapOperation);
      if (soapMessagePart == null)
      {
        throw new AssertionPassException();
      }

      while (soapMessagePart != null)
      {
        // check whether part accessor or return are in no namespace           
View Full Code Here


          WSIConstants.NS_URI_SOAP,
          XMLUtils.SOAP_ELEM_BODY);
      if (soapBodyList.getLength() == 0 || soapBodyList.getLength() > 1)
      {
        // There is not a body or more than one bodies in the envlope.
        throw new AssertionPassException();
      }
      // find headers
      NodeList soapHeaders =
        doc.getElementsByTagNameNS(
          WSITag.ELEM_SOAP_HEADER.getNamespaceURI(),
          WSITag.ELEM_SOAP_HEADER.getLocalPart());

      //find all operation
      //Element soapOperation = XMLUtils.getFirstChild(soapBodyElem);

      // gets soapbind:headers
      List bindingHeaders = null;
      if (entryContext
        .getMessageEntry()
        .getType()
        .equals(MessageEntry.TYPE_REQUEST))
      {
        if (bindingOperation.getBindingInput() != null)
          bindingHeaders =
            bindingOperation.getBindingInput().getExtensibilityElements();
        else
          throw new AssertionFailException();

      }
      else
      {
        if (entryContext
          .getMessageEntry()
          .getType()
          .equals(MessageEntry.TYPE_RESPONSE))
        {
          if (bindingOperation.getBindingOutput() != null)
            bindingHeaders =
              bindingOperation.getBindingOutput().getExtensibilityElements();
          else
            throw new AssertionFailException();
        }
      }
      if (bindingHeaders == null || bindingHeaders.size() == 0)
      {
        throw new AssertionPassException();
      }

      Iterator iterator = bindingHeaders.iterator();
      while (iterator.hasNext())
      {
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsi.internal.core.analyzer.AssertionPassException

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.