Package org.somda.sdc.dpws.wsdl
Class WsdlRetriever
- java.lang.Object
-
- org.somda.sdc.dpws.wsdl.WsdlRetriever
-
public class WsdlRetriever extends Object
Utility to retrieve and handle WSDLs.Three methods of retrieval are supported:
- wsx:Location entries can retrieved via HttpClient
- WSDLs embedded in wsx:MetadataSection elements can be extracted
- WSDLs to be requested via wsx:MetadataReference can be requested via transfer get
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>retrieveWsdlFromMetadata(Metadata metadata)Retrieves the WSDLs referenced or embedded in the provided metadata.Map<String,List<String>>retrieveWsdls(HostingServiceProxy hostingServiceProxy)Retrieves all WSDLs of the Provider the client is connected to.
-
-
-
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 retrievedTransportException- 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 retrievedTransportException- in case a transport related error occurs (connection refused, ...)
-
-