这是我需要的。
<ns1:Identity token="123456789"></ns1:Identity>
<ns1:Identity><item><key>token</key><value>123456789</value></item></ns1:Identity>
$headers[] = new SoapHeader('http://qpricer.com/Services/Pricing','Identity',array('token'=> '123456789')); $client->__setSoapHeaders($headers);
使用soapui,我已经把我的问题缩小到这里。
如何从第二个到第一个?
非常感谢您的帮助,谢谢您的时间。
因为这是我必须设置的唯一标题,所以我能够使用以下代码修复它。
$headers[] = new SoapHeader('http://www.qpricer.com/Services/Pricing','Identity token="123456789"',null);
<ns1:Identity token="123456789"/>
成功了!