Copyright | (c) 2018 Chris D'Aloisio |
---|---|
License | MPL-2.0 |
Maintainer | chris.daloisio@bellroy.com |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Give me a WSDL and I'll give you a service representation.
You can use the generateWSDLfromURL
function to download and generate a
WSDL
model which can be used by the XML and SOAP modules.
Synopsis
- generateWSDLfromURL :: String -> IO (Either Error WSDL)
- mkEndpointURL :: Endpoint -> String
- data WSDL = WSDL Endpoint [Operation]
- type Operation = String
- data Endpoint = Endpoint Host Port
- type Host = String
- type Port = String
- data Error
- parseResponse :: Response ByteString -> Either SomeException Document
- fetchWSDL :: String -> IO (Response ByteString)
- documentToWSDL :: Document -> Either Error WSDL
- serviceUrlMatches :: Cursor -> Either Error Endpoint
- operationMatches :: Cursor -> Either Error [Operation]
- serviceUrlMatches' :: Cursor -> [[Text]]
- operationMatches' :: Cursor -> [[Text]]
Primary functions
generateWSDLfromURL :: String -> IO (Either Error WSDL) Source #
Given the URL of a WSDL, download, parse and convert to the WSDL data type
mkEndpointURL :: Endpoint -> String Source #
Create the endpoint URL string from the Endpoint
data type
Data types
Internal helper functions
parseResponse :: Response ByteString -> Either SomeException Document Source #
serviceUrlMatches' :: Cursor -> [[Text]] Source #
operationMatches' :: Cursor -> [[Text]] Source #