开发者

2 Different Services with the Same Base Object

开发者 https://www.devze.com 2023-01-08 06:36 出处:网络
I have 2 services that one returns an object and a second service that takes that same object in as a paramater. I开发者_JAVA技巧s it possible to do something like the following in .NET? From my under

I have 2 services that one returns an object and a second service that takes that same object in as a paramater. I开发者_JAVA技巧s it possible to do something like the following in .NET? From my understanding JAVA actually supports actions like this

var personObject = Service1.GetPerson();

Service2.DeletePerson(personObject);

Thank you for any assistance or direction that can be provided!


The solution is actually shared types on the reference. Doesn't appear to have a permanent solution for it that you will not have to update after each update of the wsdl but it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消