Using WCF from BizTalk 2006R1

I need to create an Orchestration in BizTalk 2006R1 that will consume a WCF web service basicHTTP

. Anyone have any pointers on how to do this please? The WCF service was created by another team, but I can request that they create an additional endpoint with a binding customization to make it possible to call from the BizTalk SOAP adapter.

I just created a simple test service basicHTTP

that works great when testing from a command line client. When I get to BizTalk add the web link, I can go to the service, but then I get the message "Failed to add web reference"

and it crashes!

+2


a source to share


2 answers


When you add a web link, Biztalk reads metadata from the service.

To do this, you need to activate the exchange of metadata, this is done using the mex tag and behavior configuration.



Try browsing your service to check if metadata sharing is enabled.

0


a source


There are some problems with "Add Webservice Reference" and missing usernamespace in root directory

<WSDL:Definition>

      

in WSDL.



In WCF, you manage this target namespace by using the namespace declaration in the service class (not the contract) with the ServiceBehavior.

[ServiceBehavior(Namespace="urn:yournamespace")]
public class YourService : IYourContract
{  }

      

Try adding this and then run the Add Web Service wizard again.

0


a source







All Articles