I seem to be confusing myself the more I dig around the internet for help on this so any advice is really appreciated…
I’m simply trying to reference a service from Solution A in Solution B. I have the service up and running and consumed in Solution A. I deployed the service and front end to our Devenvironment and verified its working. So now I want to consume the service I deployed from Solution A in Solution B.
I have this service url: https://Domain/Common/CommonService.svc/ws that I want to consume in Solution B.
I’m confused at how I should configure it…
Do I need to allow serviceMetadata? I’m assuming yes or how else will it make the reference.
I referenced Solution A‘s DLL Common.Domain.Entities that has all the POCOs in Solution B.
I’m just not sure how I’m supposed to do this, so any point in the right direction would be nice. Thanks!
You need to enable the MEX endpoint for the service (it’s enabled by default) and add a Service Reference to the Service Hosted by Solution A to your project consuming the service in Solution B. A service reference can be added in Visual Studio by right-clicking the project node in Visual Studio.