Kernel::GenericInterface::Invoker::SolMan::RequestSystemGuid

NAME

Kernel::GenericInterface::Invoker::SolMan::RequestSystemGuid – invoker to request remote system guid

PUBLIC INTERFACE

new()

usually, you want to create an instance of this by using Kernel::GenericInterface::Invoker->new();

PrepareRequest()

prepare the invocation of the configured remote web service. RequestSystemGuid will return the GUID of the remote SolMan system.

    my $Result = $InvokerObject->PrepareRequest(
        Data => {},
    );

    $Result = {
        Success         => 1,                   # 0 or 1
        ErrorMessage    => undef,               # can't generate errors
        Data            => {},                  # no data needed for this invoker
    };

HandleResponse()

handle response data of the configured remote web service.

    my $Result = $InvokerObject->HandleResponse(
        ResponseSuccess      => 1,              # success status of the remote web service
        ResponseErrorMessage => '',             # in case of web service error
        Data => {                               # data payload
            ErrorCode => '01',                                      # on error
            ErrorMessage => 'Error Code: 01                         # on error
Error Details:
An error occured
'
            RemoteSystemGuid => 123ABC123ABC123ABC123ABC123ABC12,   # on success
        },
    );

    $Result = {
        Success         => 1,                   # 0 or 1
        ErrorMessage    => '...',               # in case of error or undef
        Data            => {                    # data payload after Invoker
            RemoteSystemGuid => 123ABC123ABC123ABC123ABC123ABC12
        },
    };
Scroll to Top