从 WCF 客户端使用 WebSphere 服务:无法从 ServiceEndpointAddress 创建 AxisService

发布于 2024-08-24 19:01:17 字数 425 浏览 5 评论 0原文

我正在从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橙幽之幻 2024-08-31 19:01:17

经过一番与 fiddlerSoapUI 我设法理解这与 WCF 绑定生成的 HttpHeader 有关:

WCF generated HttpHeader (响应:无法创建 AxisService) :

POST /MyWebServiceDomain/aWebService HTTP/1.1

SoapUI HttpHeader (工作正常):

POST http://xx.xxx.xxx.xx:9080/MyWebServiceDomain/aWebService HTTP/1.1

在 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):

POST /MyWebServiceDomain/aWebService HTTP/1.1

SoapUI HttpHeader (works fine):

POST http://xx.xxx.xxx.xx:9080/MyWebServiceDomain/aWebService HTTP/1.1

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文