soap-0.2.2.2: SOAP client tools
Network.SOAP.Transport.Mock
Description
Debug transport to train your parsers without bugging real services.
Synopsis
initTransport :: Handlers -> IO TransportSource
Wrap a collection of handlers into a transport.
type Handler = Document -> IO ByteStringSource
type Handlers = [(String, Handler)]Source
handler :: ToXML a => (Document -> IO a) -> HandlerSource
Process a Document and wrap result in a SOAP Envelope.
faultSource
Arguments
SOAP Fault code (e.g. «soap:Server»
Fault string
Fault detail
Emulate a SOAP fault.
runQuery :: [(String, Handler)] -> TransportSource
Choose and apply a handler.