Reuse of DataContracts

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Nov 10, 2008 at 10:36 PM
I am currently developing a solution using WCF.
I have two applications, Intranet Service and Internet Service
The Internet Service is a Facade of the Intranet Service.
Both use the same data contracts.

I am using SilverLight as the UI for the application.
I have added both service references to the UI Project.

There are two Service Contract Groups, Business Tasks, and Business Processes.
The requirement is that I must call the ValidateAccountNumber Operation of the Business Process Contract Group passing in an account data contract.
This process returns a response object, if the response object indicates the account is valid, I then can call other methods passing in that account.

In the SilverLight Application I have created two service references, one to the Business Tasks Web Service and one to the Business Process Web Service.

I create the Business Process account and want to pass it into the Business Task operations. (The account is the same Data Contract)
It appears that the BusinessProcess.account and the BusinessTask.account  are not the same datatype, but they are.
I can not even cast it.

BusinessProcess.account = (BusinessProcess.account)BusinessTask.account

Both services use the same data contracts, why am I not able to pass the DC around?

am I being clear as to what my problem is?
Dec 18, 2008 at 9:00 AM
You are not clear, please be more precise, what mean service contract group ? Please give me detailed descriptions of the process call client-service and data contract that you are using.

Regards,
Rastko