Publish Web Service
This sample publishes web services to retrieve data from the Northwind database. You can get sample Northwind databases here.
This Linx Solution uses the Database, Utilities, and Web plugins.
To run the sample
- Open the PublishWebService solution with Linx Designer.
- Click on the Settings button.
- On the Settings tab change the values of the Settings to suit your environment (if you need help with the database connection string, have a look at this help topic). Be aware that using Windows Authentication in your connection string might not work when the solution runs in LinxServer because LinxServer does not run in the desktop user’s security context except if you specifically change it.
- Click the Deploy button.
- Select the server. If no server is configured
- Click Add Server.
- Fill in the properties:
- Server Configuration Name = local
- Server URL = https://localhost:8022 (default port if you did not provide one during install)
- User = [user name] (admin is the default user installed)
- Password = [your password] (provided during install or changed since)
- Click Save.
- Select the server.
- Click Deploy.
- When deployment is finished click the server name in the notification message.
- The browser should now be on the server admin page.
- Click on PublishWebService under Solutions.
- Select the Projects tab.
- Both Processes should be visible with Run links next to them.
- The full web service url is also displayed on the right hand side.
- Click Run to test it or copy the Url to another browser tab, change the parameters to suitable values and submit. Remember to check ‘Wait for finish’ when using Run or else it will execute asynchronously and you will not see the result.
If you have any problems please contact us at email@example.com.