com.covisint.messaging.custom.metadataextract.extractor.ResponseMetadataExtractor

When to use Service?

This Metadata Extractor is used to extract the response message codes of StatusCode and SubStatusCode and some additional attributes in Data tag, and then persist them as message attributes. The information is stored in a serialized com.covisint.tif.entity.common.ResponseStatus object that will need to be interrupt. This service will never fail for any reason. So if the object is corrupt, doesn't have the attribute, or missing payload, it will not fail. It's only available in Connect Onstar branch. To use the extractor, you have to set the following parameter - 'MetadataExtractor=ResponseMetadataExtractor'.

Service Description – Required

Format:

MetadataExtractor=ResponseMetadataExtractor,${attribute_name_1}=${attribute_value_1},${attribute_name_2}=${attribute_value_2},...

Sample Configuration:

MetadataExtractor=ResponseMetadataExtractor,AccountNo=account_no

Sample Input:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>< ns2:Response xmlns:ns2="http://www.covisint.com/tif/2010/response" xmlns="http://www.covisint.com/tif/2008/data">

200 126261791 U9BOQ4R80ZB2NKSFQGZXNDUHSG2IFC0WGHVJLGHNYAXLTTDMLBYQG9SRZ US

Sample Output

MESSAGE:ATTRIBUTES

Attribute Name: Attribute Value

Status: 200

Account No: 126261791

Errors

123 - Error occurs when extracting attributes from message payload.