How can I access multiple asmx web services from a windows forms application?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
We have a forms application which is required to access a web service (asmx) on the local machine to preform database calls. That same service must also then contact a webservices hosted on the internet. The server that hosts the application has 2 network cards in it, one for the local, closed network and one to access the internet. The original problem I had was when installing 2 services all the calls would attempt to use just one endpoint. I tried several changes to the app.config but could never get the routing to work. The next step was to build a second local service which in turn would call the internet service and again, I had the problem with the calls all going to one endpoint. My next attempt was to reference the internet service through the original local WCF (.svc) webservice but even with that Im getting an "Endpoint Mismatch" error.
So, my question is how do you configure an application to access 2 webservices, either directly or indirectly?
Thank you,
-Michael

View the full article
 
Back
Top