2

这是使用的代码SOAP::Lite

my $lookup = SOAP::Lite->service('http://hostname.com/path/SpringVerifierWebServicePort?wsdl')
    -> proxy("$theURL") ;
$response = $lookup->verifySpring();

当它执行时,它会产生这个请求

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<verifySpring xmlns="http://webservice.springverifier.toolslang.fedins.com" xsi:nil="true" />
</soap:Body>
</soap:Envelope>

有没有办法删除标签上的 xsi:nil="true" ?

4

1 回答 1

1

我找到了答案。似乎这是 SOAP:Lite 库的限制(但很容易修改)。 http://www.perlmonks.org/?node_id=931103

于 2016-01-22T14:21:12.797 回答