Sending a message using http to Databridge - HxGN EAM - 12.0 - Administration & Configuration

HxGN EAM Databridge System Administrator Guide

Language
English
Product
HxGN EAM
Search by Category
Administration & Configuration
HxGN EAM Version
12

Databridge uses a basic HTTP authentication header to carry the user ID and password for logging in. The user ID and password must match the user ID and password created for the partner record in the Databridge Login section of the Databridge Partners form.

See Configuring Databridge partners

  • With the user credentials, set the HTTP authentication header using the following format:

    addRequestHeader(HTTPConstants.HEADER_AUTHORIZATION, "Basic " + based64Encode(userid + ":" + password);

  • Set the Databridge document into the HTTP message as a named value pair with name="$xmldata" and value=the Databridge document XML.

  • Send the HTTP message to the following address:

    http://<databridge server address>/axis/servlet/DatabridgeReceiverServlet?TenantID=<tenant>

    If the Databridge server receives the message successfully, it responds with an HTTP OK status (200) and response text that carries the message ID allocated to the message.

    This message only indicates that the message has been received by the Databridge server. It does not indicate the message processing status.

    If the Databridge server does not receive the message successfully for any reason, it will respond with a HTTP status failure code, such as HTTP 500. Possible reasons for the failure may include improperly formed Databridge XML, invalid partner or login information. The HTTP response text will carry more specific error information to help with debugging the issue that resulted in failure.