I created two wsdl files with generic types imported from an xsd schema file.
After that, I created web services using the interface generated by the wsdl.exe tool with the / serverInterface option.
The Frist web service has a "RegisterData" web method with a queue for some complex object to be processed by system "A". As a result of this method, Boolean is returned (tell us that the object was successfully registered).
The second web service has an “UpdateData” web method for updating some data in system “B” based on the same object that was changed in the process in system “A”.
So, in system "A" I need to create a client for the second web service, where I will call the "UpdateData" method using this argument with a modified complex object.
But when I create this client in Visual Studio (by adding a web link or adding a service link), I need to create some namespace for the client. And then, when Im trying to call "UpdateData", has a different namespace for the same object obtained from the first method of the web service "RegisterData".
I would like to create the first web service and the second web service client, where I can use this object with the same type between them.
Thank you very much for your help.
source
share