Problem with WCF and multiple namespaces - sharing object types across multiple service references

后端 未结 4 800
闹比i
闹比i 2021-01-13 09:53

i have two web services. One with user functionality, one with admin functionality.

Both services effectively work with the same object types, for instance:

4条回答
  •  一向
    一向 (楼主)
    2021-01-13 10:31

    Check out http://cgeers.com/2011/07/31/wcf-sharing-types-using-svcmap/ By tweaking the Reference.svcmap file you can make sure only one class is generated for each DataContract used by the different service references.

    Note: Remember to delete the content of the node before pressing 'Update Service Reference'

提交回复
热议问题