Class WsdlRetriever


  • public class WsdlRetriever
    extends Object
    Utility to retrieve and handle WSDLs.

    Three methods of retrieval are supported:

    1. wsx:Location entries can retrieved via HttpClient
    2. WSDLs embedded in wsx:MetadataSection elements can be extracted
    3. WSDLs to be requested via wsx:MetadataReference can be requested via transfer get
    WSDLs embedded in wsx:MetadataReference entries are currently unsupported.
    • Method Detail

      • retrieveWsdls

        public Map<String,​List<String>> retrieveWsdls​(HostingServiceProxy hostingServiceProxy)
                                                     throws IOException,
                                                            TransportException
        Retrieves all WSDLs of the Provider the client is connected to.
        Parameters:
        hostingServiceProxy - to retrieve WSDLs from
        Returns:
        map with hosted service name as key and all associated WSDLs as values
        Throws:
        IOException - in case WSDLs could not be retrieved
        TransportException - in case a transport related error occurs (connection refused, ...)
      • retrieveWsdlFromMetadata

        public List<String> retrieveWsdlFromMetadata​(Metadata metadata)
                                              throws TransportException,
                                                     IOException
        Retrieves the WSDLs referenced or embedded in the provided metadata.
        Parameters:
        metadata - to extract WSDLs from
        Returns:
        all WSDLs found within the given metadata
        Throws:
        IOException - in case WSDLs could not be retrieved
        TransportException - in case a transport related error occurs (connection refused, ...)