hi all
i have group of academies and manages received data in central office by a wcf service ,received data is as followed:
Teacher info :new teacher ,update teacher and delete teacher ,...
student info :new student ,update student and delete student ,...
...
1- does it need to split in separate service?
2- how and can i combine service address in App.config file of service host app to client use my services in single add service reference?
i.e this is my service contract:
[ServiceContract]
public interface ITeacher
{
[OperationContract]
void Add(Teacher teacher);
[OperationContract]
void Update(Teacher teacher);
[OperationContract]
void Delete(Teacher teacher);
}
[ServiceContract]
public interface IStudent
{
[OperationContract]
void Add(Student student);
[OperationContract]
void Update(Student student)
[OperationContract]
void Delete(Student Student);
}
<system.serviceModel>
<services>
<service name="BusManagmentService.StudentService">
<endpoint address="" binding="basicHttpBinding" contract="BusManagmentService.IStudent">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/BusManagmentService/IStudent/" />
</baseAddresses>
</host>
</service>
<service name="BusManagmentService.TeacherService">
<endpoint address="" binding="basicHttpBinding" contract="BusManagmentService.ITeacher">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/BusManagmentService/ITeacher/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>