Class WSILProxy

java.lang.Object
org.apache.wsil.client.WSILProxy

public class WSILProxy extends Object
This class gives access to an inspection.wsil document and its contents. This information can be use to find, deploy and bind services.
Version:
1.0
Author:
Alfredo da Silva
  • Constructor Details

    • WSILProxy

      public WSILProxy() throws WSILException
      Creates a new WSILProxy instance.
      Throws:
      WSILException - if an error occurs
    • WSILProxy

      public WSILProxy(String wsilDocumentURL) throws WSILException
      Creates a new WSILProxy instance.
      Parameters:
      wsilDocumentURL - an URL value
      Throws:
      WSILException - if an error occurs
    • WSILProxy

      public WSILProxy(Element inspectionElement) throws WSILException
      Creates a new WSILProxy instance.
      Parameters:
      inspectionElement - an Element value
      Throws:
      WSILException - if an error occurs
  • Method Details

    • getWSILDocument

      public WSILDocument getWSILDocument()
      Returns a WSIL document.
      Returns:
      a WSILDocument value.
    • getWSDLDocumentByServiceName

      public WSDLDocument[] getWSDLDocumentByServiceName(String serviceName) throws WSILException
      Returns an array of WSDLDocuments given a service name.
      Parameters:
      serviceName - a String value
      Returns:
      a WSDLDocument[] value or null if no documents were found.
      Throws:
      WSILException - if an error occurs
    • getWSDLDocumentByName

      public WSDLDocument[] getWSDLDocumentByName(String wsdlDocName) throws WSILException
      Returns an array of WSDLDocuments given a name.
      Parameters:
      wsdlDocName - a String value
      Returns:
      a WSDLDocument value or null if no documents were found.
      Throws:
      WSILException - if an error occurs
    • getWSDLDocumentByBinding

      public WSDLDocument[] getWSDLDocumentByBinding(QName bindingName) throws WSILException
      Returns an array of WSDLDocuments given a binding name.
      Parameters:
      bindingName - a QName value
      Returns:
      a WSDLDocument value or null if no documents were found.
      Throws:
      WSILException - if an error occurs
    • getWSDLDocumentByPortType

      public WSDLDocument[] getWSDLDocumentByPortType(QName portTypeName) throws WSILException
      Returns an array of WSDLDocuments given a portType name.
      Parameters:
      portTypeName - a QName value
      Returns:
      a WSDLDocument value or null if no documents were found.
      Throws:
      WSILException - if an error occurs
    • getBusinessServiceByServiceName

      public org.uddi4j.datatype.service.BusinessService[] getBusinessServiceByServiceName(String serviceName) throws WSILException
      Returns an array of BusinessServices given a service name.
      Parameters:
      serviceName - a String value
      Returns:
      a BusinessService value or null if no elements were found.
      Throws:
      WSILException - if an error occurs
    • print

      public void print(OutputStream out) throws WSILException
      Print the internal WSIL document.
      Parameters:
      out - an OutputStream value
      Throws:
      WSILException - if an error occurs
    • getWSDLDocumentLocations

      public String[] getWSDLDocumentLocations(String serviceName) throws WSILException
      Returns the an array of WSDL document locations given a service name.
      Parameters:
      serviceName - a String value
      Returns:
      a String[] value or null if no locations were found.
      Throws:
      WSILException
    • main

      public static void main(String[] args)
      Displays the contents of the default WS-Inspection document or the specified document.
      Parameters:
      args - an array of command-line arguments