Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Sending an Event

To send an event as a request encapsulating request headers as properties.

## Signature

    Event sendRequest(String url, SimpleEvent requestEvent, String responseEventURI, long timeoutMillis, Object httpConnectionInfo)

## Description

This function sends an event as a response to the request.

You can disable the cookies using the `disableCookies()` function. To ensure that the entire message along with the response header and the request body is sent at once, use `disableExpectContinueHeader()`.

## Parameters

Name | Type | Description
--- | --- | ---
    url
    String
| The URL for the endpoint that will receive this request.
    requestEvent
    SimpleEvent
| The event to serialize and send to the server.
    responseEventURI
    String
| The fully qualified path of an event. This event is created when the response is received.
    timeoutMillis
    Long
| The timeout interval for the operation. If the value is `-1`, the server waits forever.
    httpConnectionInfo
    Object
| HTTP Connection Info object.

## Returns

Type | Description
--- | ---
    Event
| An event as a response to the request

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.