IToiHelloWorldService Interface Reference


Description

The HelloWorld platform service provides a state-of-the art way of saying hello to the world ;-)

Two different ways of saying hello are available.

The first way demonstrates synchronous IPC messages which returns an answer in the call returns.

The second way demonstrates how to use asynchronous IPC messages. The method call will return immediately, but the anser might not be available until later. When the answer is ready, a callback is made to the caller (the observer), which can then take action.

See also:
IToiHelloWorldObserver

import "IToiHelloWorldService.idl";

List of all members.

Public Member Functions

void SaySynchronousHello (in string subject, out string greeting) raises (TToiInvalidArgumentException)
void SayAsynchronousHello (in string subject, in string address) raises (TToiInvalidArgumentException)

Member Function Documentation

void IToiHelloWorldService::SayAsynchronousHello ( in string  subject,
in string  address 
) raises (TToiInvalidArgumentException)

This method also creates a hello world greeting. However, the result is not returned by the method itself. Rather, when the message has been constructed, it is returned by a callback.

Parameters:
subject Who the service will say hello to.
address The address to a IToiHelloWorldObserver callback.
Exceptions:
TToiInvalidArgumentException Raised if subject is invalid.
void IToiHelloWorldService::SaySynchronousHello ( in string  subject,
out string  greeting 
) raises (TToiInvalidArgumentException)

This method creates a hello world greeting. Example input: "World" Example output: "Hello, World!"

Parameters:
subject Who the service will say hello to.
Return values:
greeting The complete hello greeting.
Exceptions:
TToiInvalidArgumentException Raised if subject is invalid.