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

Prerequisites:

  • Stambia DI Designer S18.3.0 or higher
  • Stambia DI Runtime S17.4.0 or higher

 

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

 

 metadata responseCode

metadata responseMessage

 

 

Mapping Configuration

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

mapping