How to Consume a Web Service With iOS
Consuming a Web service is the phrase given to a .NET project on iOS that uses a Web application programming interface to run functions on an external website. When you consume the Web service API, you import all the functions and properties of the API into your .NET project. The .NET platform has an import wizard to include an API in a project.
Instructions
-
-
1
Open the Visual Studio software and open the Web project you want to use to consume the service. You need to open only the project, and you don't need to have a file open to import the API.
-
2
Right-click the "References" folder in the Solution Explorer panel. Click "Add Web Reference" to open a configuration window.
-
-
3
Type the URL to the Web service. If you don't know the location of the service and it's located on your local network, click the "Browse" button and select the location of the Web service.
-
4
Type a friendly name for the Web service in the "Name" text box. This is any name you want to use in your iOS app. Click "Add Reference" to complete the process.
-
1