locked
help in creating webservice project RRS feed

  • Question

  • User1410914394 posted

    Hi 

    Can any one help me how to implement losely coupled architecture for calling different services 

    i have 4 different webservices which were developed on soap and in future i may get more number of services too

    i want to create a project which will call the service based on situations(i dont require code for calling service), i need how to implement the scenario

    i am not good at oops , kindly help me how to create project 

    all my services have header and body

    my services are as follows

    1) Addemployee Service

    2) SerachEmployee Service

    3) AddDepartment

    4) SearchDepartmentService

    from front end , if i enter 1 in text box i need to call a Employee webservice if i enter 2 i need to call another service and so on

    i have below questions

    1) I think i need to create an interface with methods as createHeader and CreateBody and Call service.I created as follows but dont know how to go to next level as each service will have different type of headers and body

    public interface IServiceContract
    {
    void CreateHeader();
    void CreateBody();
    void CallService();
    }
    public class EmployeeService: IServiceContract
    {

    public void CreateHeader()
    {
    throw new NotImplementedException();
    }

    public void CreateBody()
    {
    throw new NotImplementedException();
    }

    public void CallService()
    {
    throw new NotImplementedException();
    }
    }

    but i am confused how to user create header and created body for each service i have different implementations.

    I am sorry if i am not clear , my requirement is as follows , i want to implement different services at run time ,i wnat to create a losely couple architecture

    kindly help me on this.

    Thanks

    Ven

    from from end , if 

    Saturday, September 23, 2017 6:56 PM

All replies