在wsdl
文件中:如果在设置attribute
的值时存在space
,这是错误吗?例如:
<soap:address location="http://192.168.1.123/imfmobile/webservice/InterfaceTransfererClient.php"/>
如果我写:,这是错误吗
<soap:address location = "http://192.168.1.123/imfmobile/webservice/InterfaceTransfererClient.php"/>
或
<soap:address location= "http://192.168.1.123/imfmobile/webservice/InterfaceTransfererClient.php"/>
或
<soap:address location ="http://192.168.1.123/imfmobile/webservice/InterfaceTransfererClient.php"/>
由于WSDL和SOAP遵循XML规范,等号之间是否有空格、制表符甚至换行符都无关紧要:http://www.w3.org/TR/2006/REC-xml11-20060816/#sec-空白
然而,XML解析器可能不是100%符合XML规范。我建议不要在属性名称和值之间使用空格。