从 WCF 客户端使用 WebSphere 服务:无法从 ServiceEndpointAddress 创建 AxisService
我正在从 WCF 客户端使用(或尝试使用)WebSphere 服务(服务引用 + 通过 svcutil 生成的绑定)。
连接似乎已成功建立,但我收到以下错误:
CWWSS7200E: Unable to create AxisService from ServiceEndpointAddress [address]
响铃了吗?
我猜测请求格式在某种程度上被服务拒绝了,我正在用 fiddler 嗅探它,它看起来总体不错(如果 ppl 认为它有帮助,可以发布)。找到这篇文章,但似乎不适用就我的情况而言。
任何帮助表示赞赏!
I am consuming (or trying to consume) a WebSphere service from a WCF client (service reference + bindings generated through svcutil).
Connection seems to be established successfully but I am getting the following error:
CWWSS7200E: Unable to create AxisService from ServiceEndpointAddress [address]
Rings any bell?
I am guessing the request format is somehow being rejected by the service, I am sniffing it with fiddler and it looks fine overall (can post if ppl think it could help). Found this article, but it doesn't seem to apply to my case.
Any help appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一番与 fiddler 和 SoapUI 我设法理解这与 WCF 绑定生成的 HttpHeader 有关:
WCF generated HttpHeader (响应:无法创建 AxisService) :
SoapUI HttpHeader (工作正常):
在 WCF 绑定上设置
hostNameComparisonMode="Exact"
(我使用 basicHttpBinding)就成功了,并且 POST 正在正确生成,或者至少以服务喜欢的方式。这并不容易——希望它对其他人有帮助。
PS 有关此内容的更多信息,请参阅相关的博客文章。
After a lot of messing about with fiddler and SoapUI I manage to understand this was related to the HttpHeader generated by the WCF binding:
WCF generated HttpHeader (response: Unable to create AxisService):
SoapUI HttpHeader (works fine):
Setting
hostNameComparisonMode="Exact"
on the WCF binding (I am using basicHttpBinding) did the trick, and the POST is being generated correctly, or at least in a way that the service likes.Wasn't exactly an easy one - hope it helps someone else.
P.S. more about this on a related blog post.