开发者

Consuming WebSphere service from WCF client: Unable to create AxisService from ServiceEndpointAddress

开发者 https://www.devze.com 2022-12-22 12:27 出处:网络
I am consuming (or trying to consume) a WebSphere service from a WCF client (service reference + bindings generated through svcutil).

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 开发者_如何学JAVArejected 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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消