Package org.eclipse.wst.wsi.internal.core.wsdl.traversal

Examples of org.eclipse.wst.wsi.internal.core.wsdl.traversal.WSDLTraversal


            WSITag.ELEM_SOAP_HEADER);
        headerRarts = new Vector();
        if (headerElem != null)
          headerRarts = XMLUtils.getChildElements(headerElem);

        WSDLTraversal traversal = new WSDLTraversal();
        //VisitorAdaptor.adapt(this);
        traversal.setVisitor(this);
        traversal.visitSOAPBody(true);
        traversal.visitSOAPHeader(true);
        traversal.visitSOAPHeaderFault(true);
        traversal.visitSOAPFault(true);

        traversal.ignoreReferences();
        traversal.ignoreBindingInput2SOAPBody();

        if (isRequest)
          traversal.ignoreBindingOutput();
        else
          traversal.ignoreBindingInput2SOAPHeader();

        if (responseSig != null && responseSig.isFault())
          traversal.ignoreBindingOutput();
        else
          traversal.ignoreBindingFault();

        existSOAPHeaderFault = true;
        Map m = new HashMap();
        WSDLUtil.expandDefinition(
            validator.analyzerContext
            .getCandidateInfo()
            .getWsdlDocument()
            .getDefinitions());
        m.put(
          "definition",
          validator.analyzerContext
            .getCandidateInfo()
            .getWsdlDocument()
            .getDefinitions());
        TypesRegistry tReg =
          new TypesRegistry(
              validator.analyzerContext
              .getCandidateInfo()
              .getWsdlDocument()
              .getDefinitions(),
              validator);
        m.put("TypesRegistry", tReg);
        traversal.traverse(match.getOperation(), m);

        if (isRequest == false)
          if (existSOAPHeaderFault == true)
            existSOAPHeader = true;
View Full Code Here


    registry =
      new TypesRegistry(
        entryContext.getWSDLDocument().getDefinitions(),
        validator);

    WSDLTraversal traversal = new WSDLTraversal();
    //VisitorAdaptor.adapt(this);
    traversal.setVisitor(this);
    traversal.visitPart(true);

    traversal.ignoreReferences();
    traversal.ignoreImport();
    traversal.traverse((Message) entryContext.getEntry().getEntryDetail());

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
      failureDetail = this.validator.createFailureDetail(errors.toString(), entryContext);
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    WSDLTraversal traversal = new WSDLTraversal();
    traversal.setVisitor(this);
    traversal.visitElement(true);
    traversal.visitExtensibilityElement(true);

    traversal.ignoreReferences();
    traversal.ignoreImport();
    traversal.traverse((Binding) entryContext.getEntry().getEntryDetail());

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
      failureDetail = this.validator.createFailureDetail(errors.toString(), entryContext);
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    WSDLTraversal traversal = new WSDLTraversal();
    //VisitorAdaptor.adapt(this);
    traversal.setVisitor(this);
    traversal.visitSOAPBinding(true);
    traversal.visitSOAPBody(true);
    traversal.visitSOAPOperation(true);
    traversal.ignoreBindingOutput();
    traversal.traverse((Binding) entryContext.getEntry().getEntryDetail());

    // !! ATTENTION
    // Analyze soapbind:body:namespace and service targetNamespace           
    if (!errors.isEmpty())
    {
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    WSDLTraversal traversal = new WSDLTraversal();
    //VisitorAdaptor.adapt(this);;
    traversal.setVisitor(this);
    traversal.visitSOAPBinding(true);
    traversal.visitSOAPBody(true);
    traversal.visitSOAPOperation(true);

    traversal.ignoreReferences();
    traversal.ignoreImport();
    traversal.traverse((Binding) entryContext.getEntry().getEntryDetail());

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
      failureDetail = this.validator.createFailureDetail(errors.toString(), entryContext);
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    WSDLTraversal traversal = new WSDLTraversal();
    //VisitorAdaptor.adapt(this);
    traversal.setVisitor(this);
    traversal.visitSOAPBinding(true);
    traversal.visitSOAPBody(true);
    traversal.visitSOAPHeader(true);
    traversal.visitSOAPHeaderFault(true);
    traversal.visitSOAPFault(true);
    traversal.visitSOAPOperation(true);

    traversal.ignoreReferences();
    traversal.ignoreImport();
    traversal.traverse((Binding) entryContext.getEntry().getEntryDetail());

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
      failureDetail = this.validator.createFailureDetail(errors.toString(), entryContext);
View Full Code Here

              validator),
          false);

      if (match != null)
      {
        WSDLTraversal traversal = new WSDLTraversal();
        //VisitorAdaptor.adapt(this);
        traversal.setVisitor(this);
        traversal.visitSOAPOperation(true);
        traversal.traverse(match.getOperation());
      }
      else
      {
        result = AssertionResult.RESULT_NOT_APPLICABLE;
      }
View Full Code Here

    // Expect wsdl:defintions
    Definition def = (Definition) entryContext.getEntry().getEntryDetail();
    //((Service)def.getServices().values().toArray()[0]).getPorts()
    // Traverse WSDL
    WSDLTraversal traversal = new WSDLTraversal();
    // VisitorAdaptor.adapt(this);
    traversal.setVisitor(this);
    traversal.visitOperation(true);
    traversal.visitBinding(true);
    traversal.visitMessage(true);
    traversal.visitPort(true);
    traversal.visitPortType(true);
    traversal.visitExtensibilityElement(true);

    traversal.ignoreImport();
    traversal.ignoreDefinition2Binding();
    traversal.ignoreDefinition2Element();
    traversal.ignoreDefinition2ExtensibilityElement();
    traversal.ignoreDefinition2Message();
    traversal.ignoreDefinition2PortType();
    traversal.ignoreDefinition2Types();

    traversal.traverse(def);

    if (!claimFound)
    {
      result = AssertionResult.RESULT_NOT_APPLICABLE;
    }
View Full Code Here

      || b.getPortType().getOperations().size()
        != b.getBindingOperations().size())
      errors.add(b.getQName());
    else
    {
      WSDLTraversal traversal = new WSDLTraversal();
      //VisitorAdaptor.adapt(this);
      traversal.setVisitor(this);
      traversal.visitOperation(true);
      traversal.traverse(b);
    }

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    WSDLTraversal traversal = new WSDLTraversal();
    //VisitorAdaptor.adapt(this);
    traversal.setVisitor(this);
    traversal.visitPart(true);
    traversal.ignoreReferences();
    traversal.ignoreImport();
    traversal.traverse((Message) entryContext.getEntry().getEntryDetail());

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
      failureDetail = this.validator.createFailureDetail(errors.toString(), entryContext);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsi.internal.core.wsdl.traversal.WSDLTraversal

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.