I have WSDL and XSD as starting point. (WSDL is generated from XSD using WCSF Blue tool). From the WSDL, using a tool, the service code is generated. The project name is “Autogenerated\_Service\_Project”. Inside this project it will have [ServiceContract] and [DataContract] classes. It has a data contract named “EmployeeDataContract”. In the GetEmployee() service operation, this datacontract is returned to the client.

I have a business layer project named “Business\_Project”. It has a method that returns “Employee” entity object.

At present, I am referring the “Business\_Project” inside “Autogenerated\_Service\_Project”.

```
Business_Project.MyClass b = new Business_Project.MyClass();
EmployeeDataContract d = b.GetAssociate();
return EmployeeDataContract;

```

The challenge comes when there happens a change in WSDl. When the WSDL is the changed the “Autogenerated\_Service\_Project” will be recreated and the code mentioned above will be lost.

What is the solution to overcome this code lose? 

Note: The “Autogenerated\_Service\_Project” is the top most project. Ideally, it cannot be referred by any other projects.