Solution organization when using WCF in Web Service Software Factory

Topics: General Discussion Forum, July and December Releases Forum, Service Factory Modeling Edition Forum
Jun 13, 2008 at 12:48 PM

I'm wonder if anyone have any experience with using WCF with Web Client Software Factory and how do you organize your code in Visual Studio 2008?
To be more exact; I have two classes wich make my WCF proxy wrappers:

public abstract class ProxyBase<T>
{
 //This class check the state of the WCF channel before each call
 //so that I dont get any timeout exceptions etc.
}

Then I have this one:

public class MyServiceProxy : ProxyBase<IMyService>
{
 //This class create the right instance and connect to the remote WCF-service
 //based on the config-information in Web.Config.

}

I want to create a service for each Module in my WCSF-project. In the Customer-module I have a service like this:

public class CustomerService : MyServiceProxy, ICustomerContract
{
 //Here I have all the methods needed to call methods on the WCF related to
 //the ICustomerContract interface.

}

and in my Supplier-module I have a service like this:

public class SupplierService : MyServiceProxy, ISupplierContract
{
 //Here I have all the methods needed to call methods on the WCF related to
 //the ISupplierContract interface.

}

This does not work yet, but my goal is to achive this if it is possible. Can anyone tell?

One problem I have now is that I'm not able to read the web.config file where I have my WCF-configuration. Im not sure that my MyServiceProxy in App_Code have access to the web.config?? Anyway if MyServiceProxy and BaseProxy is placed in the App_Code folder their not accessible to my modules where I have the concrete implementations of the CustomerService and SupplierService. How could this be solved?

How do your solution folders look like?