soap-0.1.0.4: SOAP client tools

Safe HaskellNone

Web.SOAP.Service

Synopsis

Documentation

data SOAPSettings Source

SOAP service parameters

invokeWSSource

Arguments

:: (ToNodes h, ToNodes i, FromCursor o) 
=> SOAPSettings

web service configuration

-> Text

SOAPAction header

-> h

request headers

-> i

request body

-> IO o

response

Query a SOAP service.

invokeWS'Source

Arguments

:: (ToNodes h, ToNodes i, FromCursor o) 
=> (Request (ResourceT IO) -> Request (ResourceT IO))

request transformation to apply before sending

-> SOAPSettings

web service configuration

-> Text

SOAPAction header

-> h

request headers

-> i

request body

-> IO o

response

Query a SOAP service with a customized Request.

flowNS :: Maybe Text -> Node -> NodeSource

Little helper to apply default service namespace to body nodes and their descendants. This removes the necessity to litter your code with {http://example.com/nonexistant/service/url.spamx} in element names.

 foo = "test" .=: [ "shmest" .= "spam"
                  , "spanish" .= "inquisition"
                  ]
 foo' = map (flowNS $ Just "whatever") foo