javax.wsdl.xml
Interface WSDLLocator


public interface WSDLLocator

This interface can act as an additional layer of indirection between a WSDLReader and the actual location of WSDL documents. One use could be to retrieve WSDL documents from JAR files, while still retaining the ability to resolve imported documents using relative URIs.

See Also:
WSDLReader.readWSDL(WSDLLocator)

Method Summary
 org.xml.sax.InputSource getBaseInputSource()
          Returns an InputSource "pointed at" the base document.
 java.lang.String getBaseURI()
          Returns a URI representing the location of the base document.
 org.xml.sax.InputSource getImportInputSource(java.lang.String parentLocation, java.lang.String relativeLocation)
          Returns an InputSource pointed at an imported wsdl document whose parent document was located at parentLocation and whose relative location to the parent document is specified by relativeLocation.
 java.lang.String getLatestImportURI()
          Returns a URI representing the location of the last import document to be resolved.
 

Method Detail

getBaseInputSource

public org.xml.sax.InputSource getBaseInputSource()
Returns an InputSource "pointed at" the base document.

getImportInputSource

public org.xml.sax.InputSource getImportInputSource(java.lang.String parentLocation,
                                                    java.lang.String relativeLocation)
Returns an InputSource pointed at an imported wsdl document whose parent document was located at parentLocation and whose relative location to the parent document is specified by relativeLocation.
Parameters:
parentLocation - a URI specifying the location of the document doing the importing.
relativeLocation - a URI specifying the location of the document to import, relative to the parent document's location.

getBaseURI

public java.lang.String getBaseURI()
Returns a URI representing the location of the base document.

getLatestImportURI

public java.lang.String getLatestImportURI()
Returns a URI representing the location of the last import document to be resolved. This is useful when resolving nested imports.


Copyright © 2003 IBM. All Rights Reserved.