soap 0.2.2.2 → 0.2.2.3
raw patch · 2 files changed
+19/−4 lines, 2 filesdep ~http-client
Dependency ranges changed: http-client
Files
- changelog +5/−0
- soap.cabal +14/−4
changelog view
@@ -1,4 +1,9 @@+0.2.2.3:++ * Raise http-client upper boundary.+ 0.2.2.2:+ ! Fix missing imports after conduit stopped reexporting in 1.1. 0.2.2.1:
soap.cabal view
@@ -1,11 +1,21 @@ name: soap-version: 0.2.2.2+version: 0.2.2.3 synopsis: SOAP client tools description: Tools to build SOAP clients using xml-conduit. . A mildly-complicated example: .+ > {-# LANGUAGE OverloadedStrings #-}+ > import Network.SOAP+ > import Network.SOAP.Transport.HTTP+ >+ > import Text.XML.Writer+ > import Text.XML.Stream.Parse as Parse+ > import Data.Text (Text)+ > import qualified Data.Text as T+ >+ > main :: IO () > main = do > -- Initial one-time preparations. > transport <- initTransport "http://example.com/soap/endpoint" id (iconv "cp-1251")@@ -15,7 +25,7 @@ > print activeStaff > > data Person = Person Text Int deriving Show- > + > > listStaff :: Transport -> Bool -> IO [Person] > listStaff t active = invokeWS t "urn:dummy:listStaff" () body parser > where@@ -28,7 +38,7 @@ > > parsePerson = tagName "person" (requireAttr "age") $ \age -> do > name <- Parse.content- > return $ Person name (read . unpack $ age)+ > return $ Person name (read . T.unpack $ age) . Notice: to invoke HTTPS services you need to initialize a transport from soap-tls or soap-openssl. @@ -57,7 +67,7 @@ Network.SOAP.Parsing.Stream build-depends: base ==4.*- , http-client >=0.2 && <0.3+ , http-client >=0.2 && <0.4 , http-types , configurator