我正在尝试通过 PHP 发送带有以下 header 的 SOAP 请求:
<soap:Header>
<SecureSoapHeader SecureHeader="boolean" xmlns="http://www.capitafhe.co.uk/UNIT-e/">
<settings>
<Database>string</Database>
<UserName>string</UserName>
<Password>string</Password>
</settings>
<Database>string</Database>
<UserName>string</UserName>
<Password>string</Password>
</SecureSoapHeader>
</soap:Header>
使用 PHP SOAP 函数,除了 SecureHeader="boolean"
位。这可能使用 PHP 的函数吗?
最佳答案
您可以尝试以原始方式创建 header 。
这是一个例子:http://www.php.net/manual/en/soapheader.soapheader.php#83026
关于php - 在 PHP 中设置 SOAP header XML 标记属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9005837/