如何设置这个 phpsoap 标头?
我如何设置这个 php Soap 标头?对于我的一生,我无法弄清楚。
<soapenv:Header>
<wsse:HeaderOne soapenv:mustUnderstand="1">
<wsse:UsernameKey wsu:Id="tun-12345">
<wsse:Username>myusername</wsse:Username>
<wsse:Password>mypassword</wsse:Password>
</wsse:UsernameKey>
</wsse:HeaderOne>
</soapenv:Header>
谢谢你们!
How do i set this php Soap Header ?? For the life of me I can't figure it out.
<soapenv:Header>
<wsse:HeaderOne soapenv:mustUnderstand="1">
<wsse:UsernameKey wsu:Id="tun-12345">
<wsse:Username>myusername</wsse:Username>
<wsse:Password>mypassword</wsse:Password>
</wsse:UsernameKey>
</wsse:HeaderOne>
</soapenv:Header>
Thanks guys !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此评论:
http://www.php.net/manual/en /soapclient.setsoapheaders.php#93460
所以它会像:
See this comment:
http://www.php.net/manual/en/soapclient.setsoapheaders.php#93460
So it would be like: