Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Sending a Secure Synchronous Request

To send synchronous requests using SSL, use this function.

## Description

This function is the same as the `sendRequest()` function.

For secure communication, use `sendRequest()` function along with the `setSecureInfo()` catalog function for SSL-related parameters:

    Object connectionInfo= HTTP.ConnectionInfo.createHTTPConnectionInfo(true);
    HTTP.ConnectionInfo.setSecureInfo(Object connectionInfo, String sslProtocol, Object clientIdKeyStore, String clientIdPassword, Object trustedCertsKeystore, String trustedCertsPassword, boolean verifyHostName)

## Parameters

Name | Type | Description
--- | --- | ---
    url
    String
| The URL for the server 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.
    clientIdKeystore
    Object
| The keystore object for client identity.
    clientIdPassword
    String
| Password for the client ID keystore.
    trustedCertsKeystore
    Object
| Keystore Object for trusted certificates.
    trustedCertsPassword
    String
| Password for the trusted certificates keystore.
    verifyHostName
    Boolean
| Flag for checking if a host name matches the names stored in the server’s certificates.
    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.