Create a web API in ASMX in ASP.NET.
This can be referenced from the C# project and used in the form of a function call.
Do I have to specify this URL when setting up the reference?
The URL is different in the production environment, so if possible, I would like to obtain it from a configuration file and program it.
If anyone knows how to do it, please let me know.
There are two ways to browse web services, both of which can be modified by default by configuration file.
If you used a newer service reference, change it to endpoint
in the system.serviceModel
section of app.config.Learn more about WCF.
Also, for web browsing, items will be added to Settings.settings, so make changes from the applicationSettings
in app.config or from the properties of the project properties.
© 2024 OneMinuteCode. All rights reserved.