Applescript 和 SOAP:传输错误

发布于 2024-11-05 18:28:14 字数 876 浏览 1 评论 0 原文

我是 Applescript 的新手,但我遵循了这个方便的教程,这是“Applescript webservice”的第一个 Google 结果: http://developer.apple.com/internet/applescript/applescripttoperl.html

所以我(希望)有一个 Perl 脚本,在 http://localhost:8001

但是当我运行时

set p to {"http://www.perl.com/pace/perlnews.rdf", "http://www.perl.com/pace/perlnews.rdf"}
using terms from application "http://www.apple.com/placebo"
    tell application "http://localhost:8001" to return call soap {method name:"fetch_headlines", method namespace uri:"http://localhost:8001", SOAPAction:("http://localhost:8001" & "#" & "fetch_headlines"), parameters:p}
end using terms from

我得到 “出现错误:传输错误”


谷歌让我失望了。有什么想法去哪里看吗?

I'm new to Applescript, but I followed this handy tutorial, the first Google result for "Applescript webservice": http://developer.apple.com/internet/applescript/applescripttoperl.html

So I have (hopefully) a perl script giving me a webservice at http://localhost:8001

but when I run

set p to {"http://www.perl.com/pace/perlnews.rdf", "http://www.perl.com/pace/perlnews.rdf"}
using terms from application "http://www.apple.com/placebo"
    tell application "http://localhost:8001" to return call soap {method name:"fetch_headlines", method namespace uri:"http://localhost:8001", SOAPAction:("http://localhost:8001" & "#" & "fetch_headlines"), parameters:p}
end using terms from

I get
"got an error: Transport error"


Google is failing me. Any ideas where to look?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小忆控 2024-11-12 18:28:14

传输错误意味着通信端点没有响应。您是否忘记启动 perlsoap-server 脚本(用于侦听端口 8001)?

启动 Perl SOAP 服务器后,您的 applescript SOAP 客户端代码应为

set p to "http://search.cpan.org/uploads.rdf"
using terms from application "http://www.apple.com/placebo"
    tell application "http://localhost:8001/Server" to return call soap {method name:"fetch_headlines", method namespace uri:"http://localhost:8001/Server", SOAPAction:("http://localhost:8001/Server" & "#" & "fetch_headlines"), parameters:{uri:p}}
end using terms from

ps: http:// www.perl.com/pace/perlnews.rdf 不存在...

Transport error mean that the communication endpoint does not respond. Do you forget start the perl soap-server script (for listening at port 8001)?

And after you start your perl SOAP server, your applescript SOAP-client code should be

set p to "http://search.cpan.org/uploads.rdf"
using terms from application "http://www.apple.com/placebo"
    tell application "http://localhost:8001/Server" to return call soap {method name:"fetch_headlines", method namespace uri:"http://localhost:8001/Server", SOAPAction:("http://localhost:8001/Server" & "#" & "fetch_headlines"), parameters:{uri:p}}
end using terms from

ps: http://www.perl.com/pace/perlnews.rdf does not exists...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文