Package org.apache.wsil.client
Class WSILProxy
- java.lang.Object
-
- org.apache.wsil.client.WSILProxy
-
public class WSILProxy extends java.lang.ObjectThis 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uddi4j.datatype.service.BusinessService[]getBusinessServiceByServiceName(java.lang.String serviceName)Returns an array of BusinessServices given a service name.WSDLDocument[]getWSDLDocumentByBinding(QName bindingName)Returns an array of WSDLDocuments given a binding name.WSDLDocument[]getWSDLDocumentByName(java.lang.String wsdlDocName)Returns an array of WSDLDocuments given a name.WSDLDocument[]getWSDLDocumentByPortType(QName portTypeName)Returns an array of WSDLDocuments given a portType name.WSDLDocument[]getWSDLDocumentByServiceName(java.lang.String serviceName)Returns an array of WSDLDocuments given a service name.java.lang.String[]getWSDLDocumentLocations(java.lang.String serviceName)Returns the an array of WSDL document locations given a service name.WSILDocumentgetWSILDocument()Returns a WSIL document.static voidmain(java.lang.String[] args)Displays the contents of the default WS-Inspection document or the specified document.voidprint(java.io.OutputStream out)Print the internal WSIL document.
-
-
-
Constructor Detail
-
WSILProxy
public WSILProxy() throws WSILExceptionCreates a newWSILProxyinstance.- Throws:
WSILException- if an error occurs
-
WSILProxy
public WSILProxy(java.lang.String wsilDocumentURL) throws WSILExceptionCreates a newWSILProxyinstance.- Parameters:
wsilDocumentURL- anURLvalue- Throws:
WSILException- if an error occurs
-
WSILProxy
public WSILProxy(org.w3c.dom.Element inspectionElement) throws WSILExceptionCreates a newWSILProxyinstance.- Parameters:
inspectionElement- anElementvalue- Throws:
WSILException- if an error occurs
-
-
Method Detail
-
getWSILDocument
public WSILDocument getWSILDocument()
Returns a WSIL document.- Returns:
- a
WSILDocumentvalue.
-
getWSDLDocumentByServiceName
public WSDLDocument[] getWSDLDocumentByServiceName(java.lang.String serviceName) throws WSILException
Returns an array of WSDLDocuments given a service name.- Parameters:
serviceName- aStringvalue- Returns:
- a
WSDLDocument[]value or null if no documents were found. - Throws:
WSILException- if an error occurs
-
getWSDLDocumentByName
public WSDLDocument[] getWSDLDocumentByName(java.lang.String wsdlDocName) throws WSILException
Returns an array of WSDLDocuments given a name.- Parameters:
wsdlDocName- aStringvalue- Returns:
- a
WSDLDocumentvalue 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- aQNamevalue- Returns:
- a
WSDLDocumentvalue 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- aQNamevalue- Returns:
- a
WSDLDocumentvalue or null if no documents were found. - Throws:
WSILException- if an error occurs
-
getBusinessServiceByServiceName
public org.uddi4j.datatype.service.BusinessService[] getBusinessServiceByServiceName(java.lang.String serviceName) throws WSILExceptionReturns an array of BusinessServices given a service name.- Parameters:
serviceName- aStringvalue- Returns:
- a
BusinessServicevalue or null if no elements were found. - Throws:
WSILException- if an error occurs
-
print
public void print(java.io.OutputStream out) throws WSILExceptionPrint the internal WSIL document.- Parameters:
out- anOutputStreamvalue- Throws:
WSILException- if an error occurs
-
getWSDLDocumentLocations
public java.lang.String[] getWSDLDocumentLocations(java.lang.String serviceName) throws WSILExceptionReturns the an array of WSDL document locations given a service name.- Parameters:
serviceName- aStringvalue- Returns:
- a
String[]value or null if no locations were found. - Throws:
WSILException
-
main
public static void main(java.lang.String[] args)
Displays the contents of the default WS-Inspection document or the specified document.- Parameters:
args- an array of command-line arguments
-
-