Haskell:使用哪个SOAP客户端库? [英] Haskell: which SOAP client lib to use?

查看:93
本文介绍了Haskell:使用哪个SOAP客户端库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个连接到SOAP服务的简单Haskell程序。理想情况下,我想使用服务的WSDL,并尽可能直接访问请求参数和响应数据。



我使用哪个库?



到目前为止,我只找到 HAIFA ,但它似乎在2006年左右停止开发,所以我不确定它是否是正确的选择。



更新2015-08 -14:截至目前,一个名为 soap 的软件包以及协议支持包 soap-tls soap-openssl 在hackage上可用并且看起来很有活力。 正如@sclv所说,SOAP盛世早在Haskell被严格用于Web系统之前。因此,您对完全成熟的SOAP库的选择有所限制。



显然, HAIFA 是当天最大的努力,但它不在Hackage上,所以你在那里几乎不走运。看起来 shoap 有点像试图让一些简单的工作。



对于自己来说,有很多 =noreferrer>可从Hackage中选择的XML选项,




  • HaXML,
  • haxr

  • fancyconduit-style < a href =http://hackage.haskell.org/package/xml-conduit =noreferrer> xml解析


I'd like to write s simple Haskell program that connects to a SOAP service. Ideally I'd like to use the service's WSDL and get as straightforward access to the request parameters and response data as possible.

What library do I use?

So far I only found HAIFA but it seems to have stopped developing around 2006, so I'm not sure if it's the right choice.

Update 2015-08-14: As of now, a package named soap, along with protocol support packages soap-tls and soap-openssl is available on hackage and looks alive.

解决方案

As @sclv says, the SOAP heyday was before Haskell was seriously used for web systems. As a result your options for fully-fledged SOAP libs are somewhat restricted.

Obviously, HAIFA was the biggest effort back in the day, but it isn't on Hackage, so you're mostly out of luck there. Looks like shoap was a bit of an attempt at getting something simple working as well.

For rolling your own, there are plenty of XML options to choose from on Hackage,

这篇关于Haskell:使用哪个SOAP客户端库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆