locked
Redirection in WCF RRS feed

  • Question

  • User-248110449 posted

    Hi Folks,

    Allow me to ask you I have WCF services, lets say A and B and C. Now A is responsible for redirect to B or C.When user call via web page (page) then we can have refrences of A then from A service then it can redirct to B or C. and after that if i want wsdl or response from B or C to A then can we get it?

    Please guide me, i am new for this.

    Wednesday, March 20, 2013 8:23 AM

All replies

  • User-1662538993 posted

    Yes. You can do this.

    In B or C the method you create can return say string or object and when A consume it it gets that response.

    Wednesday, March 20, 2013 8:48 AM
  • User-248110449 posted

    Please could you give me some details about this with example?

    Wednesday, March 20, 2013 8:57 AM
  • User-1662538993 posted

    //Method in Service B

    [OperationContract]
    DataTable TestMethodInB
    (
    Int32 EmployeeId
    );

    When A consume this method of B it will return DataTable(You can change it to any custom object or any data type as per your requirement).

    So then in A you can call this method like this -

    BClient bclient=  new BClient("Endpoint"); //change endpoint as per your proxy endpoint name

    DataTable dt = bClient.TestMethodInB(employeeId);

    // Once you get datatable or custome object you can work on that in Service A.

    Let me know if you are looking for anything else.

    Wednesday, March 20, 2013 9:58 AM
  • User-248110449 posted

    Hi kushal

    Thanks for answering me but my sceanrioa is totally diffrent .

    I have to exposed and exchange wsdl from Application A, B and C so how we can implement it?

    we need exchanged either wsdl or custom wsdl for beeter commnication.

    Please guide me how to do that.

    Thursday, March 21, 2013 8:37 AM