none
Can a WCF Service encapsulated in a DLL and be invoke by UI layer? RRS feed

  • Question

  • My requirement is:

    I wanna encapsulated a common WCF Service object in a DLL, then all my sub systems could use the same Service Reference proxy object to communicate with each other by only transfer different url as parameters.

    All systems are base on SOA but REST, so I think if I create an inherit classes to the same  WCF Service class as an active service might not be work, because Service Reference is stronge typing.

    Thursday, March 14, 2013 3:42 AM

Answers

  • On 3/13/2013 11:42 PM, Luo Indream wrote:

    My requirement is:

    I wanna encapsulated a common WCF Service object in a DLL, then all my sub systems could use the same Service Reference proxy object to communicate with each other by only transfer different url as parameters.

    All systems are base on SOA but REST, so I think if I create an inherit classes to the same  WCF Service class as an active service might not be work, because Service Reference is stronge typing.

    A WCF service is its own project. The best you can to is have an exe or classlib project set reference to it or a WCF service project set reference to a classlib project.

    Thursday, March 14, 2013 11:21 AM
  • I encapsulate a WCF Service interface in the dll, and each system implement it themselves.

    I found that work by only changing the url between different services and using the same service reference.

    • Marked as answer by Indream Luo Friday, March 29, 2013 2:25 AM
    Thursday, March 28, 2013 5:19 AM

All replies

  • On 3/13/2013 11:42 PM, Luo Indream wrote:

    My requirement is:

    I wanna encapsulated a common WCF Service object in a DLL, then all my sub systems could use the same Service Reference proxy object to communicate with each other by only transfer different url as parameters.

    All systems are base on SOA but REST, so I think if I create an inherit classes to the same  WCF Service class as an active service might not be work, because Service Reference is stronge typing.

    A WCF service is its own project. The best you can to is have an exe or classlib project set reference to it or a WCF service project set reference to a classlib project.

    Thursday, March 14, 2013 11:21 AM