深入探索SOAP、XML - RPC与Python XML解析
1. SOAP Shell与XML - RPC基础
1.1 SOAP Shell介绍
SOAP Shell由SOAP::Lite安装,它为SOAP请求处理程序提供了类似shell的接口。其命令的基本格式为:
SOAPsh.pl proxy [uri [commands...]]
例如,我们可以通过以下命令来尝试使用演示函数:
$ SOAPsh.pl http://test.mchome.pri/SOAP/request.cgi
➥http://test.mchome.pri/SOAP/Demo
Usage: method[(parameters)]
> getmessage()
--- SOAP RESULT ---
'Hello, world'
如果我们故意更改调度位置,可能会破坏请求处理程序,如下所示:
> getmessage
--- SOAP FAULT ---
SOAP-ENV:Client
Failed to access class (SOAP::Demo): Can't locate SOAP/Demo.pm in @INC
➥(@INC contains: /export/http/webs/test/OtherEx) at (eval 5) line 3.
超级会员免费看
订阅专栏 解锁全文
1112

被折叠的 条评论
为什么被折叠?



