Add a custom header
A custom header consists of a name-value pair, such as Host: localhost, where Host is the name, and localhost is the value. All web services, RESTful, RESTful Open API, SOAP, and SOAP WCF support custom headers.
When creating a Web service reference, you can specify custom headers so that the custom header is passed to the third-party web service when the corresponding Web service or RESTful node is executed.
-
On the
Web service references page, select the web service reference.
The Edit web service reference dialog box is displayed.
- Select for Custom header.
- Enter a Name, such as Host.
- Enter a Value, such as localhost.
- Select Add.