如何删除xsi:nil =" true"来自Perl SOAP :: Lite服务电话?

时间:2015-05-13 12:23:37

标签: perl web-services soap soaplite

以下是使用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 =&#34; true&#34;在标签上?

1 个答案:

答案 0 :(得分:1)

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