简体   繁体   English

如何在Perl中实现Web服务?

[英]How can I implement Web Services in Perl?

如何在Perl中实现Web服务?

I prefer XML::Compile::SOAP . 我更喜欢XML :: Compile :: SOAP I admit that I am not a heavy SOAP user, but I have heard from heavy SOAP users on IRC that XML::Compile::SOAP is a dream come true for them. 我承认我不是大量的SOAP用户,但是我从IRC上的大量SOAP用户那里听说XML :: Compile :: SOAP对他们来说是梦想成真。

The other day, I was writing a small script to extract data from a SOAP-accessible database. 前几天,我正在编写一个小脚本,以从SOAP可访问的数据库中提取数据。 I tried XML::Compile::SOAP, and the whole data-extraction function ended up being five lines! 我尝试了XML :: Compile :: SOAP,整个数据提取功能最终只有五行! One line to load the WSDL, one line to compile the function I wanted to call, one line to call that function (the Perl argument was automatically validated against the WSDL specification, and converted from native Perl structures to the weird Java structures on the other end), and one line to munge the result a bit. 一行用于加载WSDL,一行用于编译我想调用的函数,一行用于调用该函数(Perl参数已根据WSDL规范自动进行了验证,并从本机Perl结构转换为另一端上的怪异Java结构)结束),然后用一行来稍微调整一下结果。 After hearing people complain about how hard SOAP is, I couldn't have been happier. 在听到人们抱怨SOAP有多难之后,我再也没有比这更快乐了。

JMHO. JMHO。

Programming Web Services with Perl is a bit dated (2002?) but still should be read. 用Perl编程Web服务有点陈旧(2002?),但仍应阅读。

It also has a companion web site. 它还有一个配套网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM