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

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

问题描述

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

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.

我使用什么库?

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

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.

2015-08-14 更新: 截至目前,一个名为 soap 的包,以及协议支持包 soap-tlssoap-openssl 可在 hackage 上使用,看起来还活着.

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.

推荐答案

正如@sclv 所说,SOAP 的全盛期是在 Haskell 被认真用于 Web 系统之前.因此,您对成熟的 SOAP 库的选择受到了一定的限制.

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.

显然,HAIFA 是回馈最大的努力白天,但它不在 Hackage 上,所以你在那里大多不走运.看起来 shoap 也是尝试让一些简单的工作也能正常工作.

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.

对于滚动你自己的,有很多 XML 选项来从 Hackage 中选择

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

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

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