Open topic with navigation

TIBCO GridServer® 7.1.0

# register-service

Registers the binding in the Service Registry; this must be done on the Primary Director.

## Example Request

    POST http://example.com:8080/livecluster/rest/service/register-service

## Example Input

Parameters

Parameter Name | Data Type | Description | Sample Value
— | JSON | Service binding date that needs to be registered |
     { "parameters": [
            {
                "name": "className",
                "value": "examples.calculator.service.
    JavaCalculator"
            }
        ],
        "options": [
            {
                "name": "gridLibrary",
                "value": "calculator"
            }
        ],
        "description": [
            {
                "name": "serviceTypeName",
                "value": "JavaCalculatorExample"
            },
            {
                "name": "serviceName",
                "value": "Java Calculator Example"
            },
            {
                "name": "providerType",
                "value": "JavaProvider"
            }
        ],
        "name": "JavaCalculatorExample",
        "uidescription": "Cross-language Java Service example that performs basic calculator operations on strings",
        "type": "java",
        "containerBinding": [
            {
                "name": "targetPackage",
                "value": "examples.calculator.client" },
            {
                "name": "xmlSerialization",
                "value": "false" },
            {
                "name": "serviceMethods",
                "value": "*" },
            {
                "name": "setStateMethods",
                "value": "setMemory" },
            {
                "name": "appendStateMethods",
                "value": "addToMemory" }
        ]
    }"

## Example Response

`204 no content`

Result: Service type is created.

Did you find this helpful?

Yes No
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 GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.