Safe Haskell | None |
---|
- data SOAPSettings = SOAPSettings {}
- invokeWS :: (ToNodes h, ToNodes i, FromCursor o) => SOAPSettings -> Text -> h -> i -> IO o
- invokeWS' :: (ToNodes h, ToNodes i, FromCursor o) => (Request (ResourceT IO) -> Request (ResourceT IO)) -> SOAPSettings -> Text -> h -> i -> IO o
- flowNS :: Maybe Text -> Node -> Node
Documentation
data SOAPSettings Source
SOAP service parameters
:: (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.
:: (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