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

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


    }

  }
 
  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

      /* 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

      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

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

    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

Related Classes of org.eclipse.wst.wsi.internal.core.wsdl.WSDLDocument

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.