Retrieving the HTTP response code and message returned by a web service

This page is legacy documentation. For the current HTTP REST connector, see its dedicated section.

The HTTP Response Code and HTTP Response Message returned by a Web Service after invocation can be retrieved and stored easily in a database.

Metadata Configuration

The first step is to add the HTTP Response Code and HTTP Message in the Output of the WSDL Metadata.

  1. Open the Metadata

  2. Add two new 'Part' under the Output node of the operation

  3. Set their Name and Type

  4. Set their Binding Type to http:responseCode and http:responseMessage

http rest legacy.response.metadata responseCode
http rest legacy.response.metadata responseMessage

Mapping Configuration

Now, you can map these fields in your Mapping as usual to retrieve the values returned by the Web Service.

http rest legacy.response.mapping