I have a web service project that has 2 asmx files. Let’s call them internal.asmx & external.asmx In practice, these have different clients:
Externally a client will call externalWS.PersistOrder(Order order ) and internally, we process the order internalWS ProcessOrder(Order order). Therefore the Order class is a shared dependency across these webservices.
I am writing a test application that calls different webmethods on both of these webservices.
I am having problems because the web services use the same classe. In order to use both webmethods, I am adding 2 webreferences to my test project. However, there are 2 copies of the dependant classes, with different namespaces. As a short term fix I am editing the classes that VS creates.
There has to be a better way! Thanks in advance for your help.