我无法在 PHP 中创建正确的 SOAP 调用。我已经在 SOAP UI 中测试了以下调用并且它可以工作,但是我已经尝试了从创建对象、数组和 SOAPHeaders 的所有方法,但我似乎无法获得正确的调用。这是在 SOAP UI 中工作的请求:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="com.dtn.aghost.API.subscriptions">
<soapenv:Header>
<com:ServiceCredentials>
<usernamePasswordCombo>
<username>[username]</username>
<password>[password]</password>
</usernamePasswordCombo>
</com:ServiceCredentials>
</soapenv:Header>
<soapenv:Body>
<com:SubscriptionServiceIdList>
<visible>1</visible>
</com:SubscriptionServiceIdList>
</soapenv:Body>
</soapenv:Envelope>
谢谢!