我需要使用 Perl 进行一些复杂的肥皂查询,最好使用SOAP::Lite
. 我知道该服务处于活动状态,并且已成功从另一端获取错误。这是我需要做的肥皂查询:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCategories xmlns="http://webservices.uship.com">
<token>string</token>
</GetCategories>
</soap:Body>
</soap:Envelope>
我通过谷歌对此进行了研究,但无济于事。
更新:到目前为止使用的代码是
use SOAP::Lite;
print SOAP::Lite
-> uri('webservices.uship.com/uShipsvc.asmx?WSDL';)
-> proxy('http:/webservices.uship.com')
-> GetCategories('myToken')
-> result;
这返回
500 bad hostname, 500 Can't connect to :80 (Bad hostname '') at soap2.pl 第 2 行