无法从 phpClient 使用 WCF wshttpBinding 服务
我可以使用 basichttp 绑定,但无法使用 ws 寻址来使用服务。
这就是我的请求的样子。
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing"xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Header>
<a:Action s:mustUnderstand="1">http://tempuri.org/IService1/GetToken</a:Action>
<a:MessageID>urn:uuid:5cf2a178-a552-4e64-a68f-4575445cfac0</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
</s:Header>
i can consume basichttp binding, but i am unable to consume services with ws-addressing.
These is how my request looks like.
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing"xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Header>
<a:Action s:mustUnderstand="1">http://tempuri.org/IService1/GetToken</a:Action>
<a:MessageID>urn:uuid:5cf2a178-a552-4e64-a68f-4575445cfac0</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
</s:Header>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我确实尝试使用 wshttpbinding 调用 WCF 服务,我的请求如下所示,
它来自 C# 客户端。现在确定它是如何在 php 中完成的。希望对您有帮助。
I did try to invoke a WCF service with wshttpbinding and my request looks as shown
Its from a C# client. Now sure on how it is done in php. Hope it helps you.