Create service connection wizards ignore secure header setting

If you are using a backend that is configured with a secure header, and you create a service connection on the backend, you might receive an error when testing the connection. The wizards for creating a service connection from an endpoint and from a specification ignore the security header, which can result in the connection failing.

The workaround is to create and save an example response in the Create Service Connection from Endpoint wizard:

  • Open the Create Service Connection from Endpoint wizard.
  • Enter the endpoint and other connection details.
  • Open the Response tab.
  • In the Example text area, enter an example response (for example, {"test" : "abc"}), and then click Save Example. This creates a schema for the example.
  • Click Create to create the service connection.

If you now test the connection to the endpoint, the connection is successful, and you can save the response. You can now save the actual response, which will correctly update the response schema of the service connection.