Sir Crispalot
Sir Crispalot

Reputation: 4844

Using BizTalk WCF-WSHttp send adapter to consume web service with WS-Security over HTTP

A third party supplier has exposed a web service which we need to consume.

It is a SOAP web service which also expects WS-Addressing and WS-Security elements in the header.

I believe it should be possible to consume this web service using the WCF-WSHttp adapter in BizTalk 2009. However I am new to both WCF and WS-Security so am struggling a little.

I attempted to set up the send adapter with the following settings:

The first problem I have encountered is that when using this security configuration, BizTalk is forcing me to specify an HTTPS endpoint, yet the third party web service is over HTTP.

This is the error BizTalk gives me if I try to specify an HTTP endpoint:

enter image description here

Is this a limitation of BizTalk, or a fundamental issue with the way the supplier has exposed their web service?

Additionally, if anyone can point me towards any useful guidance on using the WCF adapters with WS-Security it would be really useful as I have struggled to find any.

Upvotes: 1

Views: 3670

Answers (3)

Rob Bowman
Rob Bowman

Reputation: 8701

If you hit this problem, ensure "Security mode" drop-down from the "Security" tab is set correctly.

enter image description here

Upvotes: 0

Abdul
Abdul

Reputation: 19

Security mode: Transport required https. It is the concept of WCf and wont work with any other tweak

Upvotes: 1

tom redfern
tom redfern

Reputation: 31750

To get BizTalk to accept the binding, configure it with the https://... address and then change the address in binding file and re-import the binding.

If BizTalk allows this (ie this is only a constraint of the WCF dialogue) then you will be in a position to actually consume the service and test it.

Upvotes: 2

Related Questions