Reputation: 2200
I have two solutions in .net (solution "A" and solution "B") which both have web services. I want to call a web service method in solution "B" from solution "A". I am very new to C# and not able to find an answer.
Upvotes: 1
Views: 3085
Reputation: 28692
Create a new webservice in Solution B and add the required method in newly created webservice from existing service and then follow the steps provided by the Marcom.
Upvotes: 0
Reputation: 161012
If both solutions A
and B
have web services and you want to use some functionality from web service B
in A
you probably should factor out this functionality in a separate class library project that you can then use in both A
and B
(used internally by the web services to provide their functionality).
This also will benefit your project long term, especially the testability aspect.
Upvotes: 2
Reputation: 4751
Run solution B. then right click on the project on solution A and click add service reference. then when you click discover the service should be visible.
creating one solution and putting both projects in it would make things more simple.
Upvotes: 3