UserGuide

Web Services Overview

From Xojo Documentation

Revision as of 16:18, 17 March 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Web services are APIs that exist on the web. The most common type are REST (Representational State Transfer) web services which you work with using simple HTTP requests. Also still is use is SOAP (Simple Object Access Protocol) but that is older and not quite as simple to use.

With Xojo you an create your own web services or you can use existing services.

You can create your own web services by using a web app and the WebApplication.HandleURL event handler.

You can use/consume any web service using the URLConnection class.

The specifics for how to connect to a web service varies by web service, but typically you will need to authenticate in some manner and the submit data to the web service so you can get results back.

On MacOS and iOS you need to be aware of App Transport Security which only allows secure (https) URLs to be used. You can override this with a plist for your app. For more information, refer to the UserGuide:App Transport Security topic.

Videos

Blogs

Docs

Example Projects

  • Examples/Communication/Web Services/AirTableArtGallery
  • Examples/Communication/Web Services/CatAPI
  • Examples/Communication/Web Services/FeedBin
  • Examples/Communication/Web Services/FormatSQL
  • Examples/Communication/Web Services/RESTy
  • Examples/Communication/Web Services/Slack

Open Source

See Also

URLConnection class; UserGuide:HTTP (Web) Communication, UserGuide:App Transport Security topics