Adding WCF service references to multiple projects


If you have multiple projects in your solution and more than one project references a common WCF service, you might have issues to get your application working as BizTalk will not be able to determine the destination schema. The schemas (created by the service references in each project) get deployed resulting in multiple schemas with the same target namespace.

You will see an exception similar to below:

Cannot locate document specification because multiple schemas matched the message type

In such scenarios, it is best to create a seperate project for service references. This project can then be referenced by other projects wanting to call the WCF service.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: