I've created a new solution with a webservice project and a WPF project in it. After that I've added the webservice reference to the WPF project. This works perfectly in visual studio and I'm able to display data on my WPF application which I've got from the webservice.
Now is my question if I release my webservice to a server where in my WPF do I have to configure the URL of my webservice?
I've already tried the stuff of the following stackoverflow question’s, but nothing worked:
Dynamically switch WCF Web Service Reference URL path through config file - My service class doesn't have an Endpoint property which I could use.
How to Change Web service Address at Runtime? - My service class also doesn't have an URL property which I could change.
Consume a SOAP web service without relying on the app.config - I've added those lines in my config but it's still not connecting to an another webservice.
What am I doing wrong? Or what am I not understanding? I'm new with .NET so i think this could be a beginner fail. Or is the usage of a SOAP Webservice in a WPF project not a good idea?