You are here: Reference Manual > FME Server Services > Notification Service > Subscribers > HTTP Push Subscriber

HTTP Push Subscriber

The HTTP Push subscriber receives notifications from Notification Service topics and posts HTTP request to the specified URL.

The subscriber contains the following properties:

  • Target URL: The URL to which notifications on the associated topics are delivered via HTTP POST.
  • HTTP Authentication User Name: The user name, if the target URL requires HTTP authentication.
  • HTTP Authentication Password: The user password, if the target URL requires HTTP authentication.
  • Content Format: The format in which to deliver content: JSON or XML
  • Post to Topics(s) on Success/Failure: These fields apply only to an HTTP Push subscriber that is auto-created when an FME Workbench workspace is published to FME Server, registered to the Notification Service, and topics are specified to which the workspace publishes notification content when a transformation succeeds or fails. In FME Workbench, these topics are specified on the Edit Service Properties dialog of the Publish to FME Server wizard, and also appear here.

Keywords

  • push_url
  • push_content_format
  • push_content_encoding
  • subscriber_content

Push Notification Content

An FME Server notification stores the message content in keyword/value pairs. If push subscriber receives a notification consisting of only one keyword/value pair, it will send the value as the POST request body. Otherwise, it will format all the keywords and values into JSON or XML based on subscriber.

For example, the notification below will be posted as value only:

subscriber_content: "This is my notification message"

The POST request body will be "This is my notification message".

Another notification consisting of multiple keyword/value pairs will be posted as JSON or XML:

{

"foo": "value 1",

"bar": "value 2"

}

Or:

<?xml version="1.0" encoding="UTF-8"?>

<content>

<foo>value 1</foo>

<bar>value 2</bar>

</content>