soap-0.2.2.4: SOAP client tools

Safe HaskellNone

Network.SOAP.Transport.Mock

Description

Debug transport to train your parsers without bugging real services.

Synopsis

Documentation

initTransport :: Handlers -> IO TransportSource

Wrap a collection of handlers into a transport.

handler :: ToXML a => (Document -> IO a) -> HandlerSource

Process a Document and wrap result in a SOAP Envelope.

faultSource

Arguments

:: Text

SOAP Fault code (e.g. «soap:Server»

-> Text

Fault string

-> Text

Fault detail

-> Handler 

Emulate a SOAP fault.

runQuery :: [(String, Handler)] -> TransportSource

Choose and apply a handler.