Examples of WSDLDocument


Examples of com.sun.tools.ws.wsdl.document.WSDLDocument

        Document root = forest.get(location);

        if(root == null)
            return null;

        WSDLDocument document = new WSDLDocument(forest, errReceiver);
        document.setSystemId(location);
        TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver);

        Definitions definitions = parseDefinitions(context, root);
        document.setDefinitions(definitions);
        return document;
    }
View Full Code Here

Examples of com.sun.tools.ws.wsdl.document.WSDLDocument

        Document root = forest.get(location);

        if(root == null)
            return null;

        WSDLDocument document = new WSDLDocument(forest, errReceiver);
        document.setSystemId(location);
        TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver);

        Definitions definitions = parseDefinitions(context, root);
        document.setDefinitions(definitions);
        return document;
    }
View Full Code Here

Examples of com.sun.tools.ws.wsdl.document.WSDLDocument

        Document root = forest.get(location);

        if(root == null)
            return null;

        WSDLDocument document = new WSDLDocument(forest, errReceiver);
        document.setSystemId(location);
        TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver);

        Definitions definitions = parseDefinitions(context, root);
        document.setDefinitions(definitions);
        return document;
    }
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.wsdl11.WSDLDocument

      WSDLReaderImpl reader = new WSDLReaderImpl(new WSDL11ValidationInfoImpl(vali));
      WSDLDocument[] docs = reader.readWSDL(uri, domModel);
      int numdocs = docs.length;
      for(int i = 0; i < numdocs; i++)
      {
        WSDLDocument tempDoc = docs[i];
    if(tempDoc.getDefinition().getDocumentBaseURI().equals(valInfo.getFileURI()))
        {
          definition = tempDoc.getDefinition()
          break;
        }
      }
    }
    catch(WSDLException e)
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

   
    try
    {
      // Get the WSDL document
      if (wsdlURI != null)
        this.wsdlDocument = new WSDLDocument(wsdlURI);
    }

    catch (WSDLException we)
    {
      throw new WSIException(we.getMessage(), we);
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

    }

  }
 
  private WSDLDocument getWsdlFromUddi() {
      WSDLDocument wsdlDoc = null;
      try {
          UDDIProxy uddiProxy = new UDDIProxy();
          UDDIReference uddiReference = getAnalyzerConfig().getUDDIReference();
          uddiProxy.setInquiryURL(uddiReference.getInquiryURL());
          TModel tModel = null;

          if (uddiReference.getKeyType().equals(UDDIReference.BINDING_KEY)) {
              BindingDetail bindingDetail = uddiProxy.get_bindingDetail(
                      uddiReference.getKey());
              BindingTemplate bindingTemplate = (BindingTemplate) bindingDetail.
                      getBindingTemplateVector().elementAt(0);
              tModel = UDDIUtils.findTModel(uddiProxy, bindingTemplate, false);
          } else { // UDDIReference.TMODEL_KEY
              TModelDetail tModelDetail = uddiProxy.get_tModelDetail(
                          uddiReference.getKey());
              tModel = (TModel) tModelDetail.getTModelVector().elementAt(0);
          }

          String overviewURL = UDDIUtils.getOverviewURL(tModel);
          String wsdlURI = UDDIUtils.getWSDLLocation(overviewURL);
          wsdlDoc = new WSDLDocument(wsdlURI);

          /* TODO:  I refactored this code from BSP3001 but I'm not sure that
           * it's correct.  This overrides the <wsdlElement> child of
           * <uddiReference> from the config file, which never gets used.
           */
 
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

      /* Next, try to use the WSDL settings from the config file.  If we can't
       * fetch that WSDL, and the config file is set up to test a WSDL, then the
       * validator fails here. */
      if ((wsdlDocument == null) && (getAnalyzerConfig().isWSDLReferenceSet()))
      {
          wsdlDocument = new WSDLDocument(getAnalyzerConfig().
                  getWSDLLocation());

          if (wsdlDocument == null)
              throw new WSIException(messageList.getMessage("config05",
                      "WSDL document was either not found or could not be " +
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

      String urlText = doc.getOverviewURLString();

      // Try to resolve the URL & check the WSDL
      try
      {
        WSDLDocument wsdlDocument = new WSDLDocument(urlText);
        Definition definition = wsdlDocument.getDefinitions();
        Map namespaces = definition.getNamespaces();
        if (!namespaces.containsValue(WSIConstants.NS_URI_WSDL))
        {
          urlText = null;
        }
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

   * Get WSDL document.
   */
  protected WSDLDocument getWSDLDocument(String wsdlLocation)
    throws MalformedURLException, WSDLException
  {
    return new WSDLDocument(UDDIUtils.getWSDLLocation(wsdlLocation));
  }
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

    try
    {
      // Read the WSDL document
      String overviewURL = UDDIUtils.getOverviewURL(tModel);
      WSDLDocument wsdlDocument = validator.getWSDLDocument(overviewURL);

      // Get binding
      Binding binding = UDDIUtils.getBinding(overviewURL, wsdlDocument);
      String bindingName = binding.getQName().getLocalPart();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.