Friday, April 29, 2016

Invalid or expired security context token or there is mismatch between bindings

While testing  WCF-WSHTTP based service using SOAP UI got following error

"The message with To ' ' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndPointAddresses agree."

Why it happened and what to do:

Issue was the Request message is missing a To tag in the soap header.

On the Message Editor, just below the request message window click on button WS-A(WS-Addressing) and set WS-Addressing property to true. Then select the checkbox "Add default wsa:To"

At BizTalk end WSHttp adapter(the WCF service) utilises the WS-Addressing standard to identify the receive location to which the message needs to be submitted.

So that error was gone but a new error appeared as can be seen below:

To overcome this, go to receive location and click on configure WCF-WSHttp adapter and set the Security mode to None and you are done.

No comments:

Post a Comment

If you have any suggestions or questions or want to share something then please drop a comment