1
Answer

.NET: Best practise to debug 2 web service that communicate together?!?

Photo of gicio

gicio

21y
1.9k
1
Hi!! I have a proble with debuging me app! my application comunicate with a web service and this web service send a request to another web service... the 1st web service return the data from the second web service to the application. How can I debug the 3 projects (1. windows application / 2 . web service 1 / 3. webservice 2) in 1 solution?!? How to set the refereces in this solution to hit all breakpoints in all of this 3 projects?!?! Please tel me your best practise to debug web services?! regards, gicio

Answers (1)

0
Photo of Ryan Alford
NA 2.3k 891.7k 16y
Instead of using the "Browse" tab, use the "Project" tab to add a reference.
0
Photo of Stefan
NA 624 0 16y
You don't have to have both in the solution explorer. Open the main project you will be using. In the solution explorer, right-click the references folder. Click "Add Reference...". In the pop up, select the browse tab. Browse the project folder of the project you want to call from. Go to the debug folder and select the .exe or .dll of your project. Select "OK". You should now see the name of that project in your references folder. Add it to your namespaces (i.e. "using MyProject"). Now simply call the method the way you normally would (i.e. "MyProject.Class1.Method1();").

Alternatively, Visual Studio has an option to add a project to your current solution.

Hope this helps!