Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ ice_invoke() [1/2]

bool Ice::ObjectPrx::ice_invoke ( std::string_view operation,
Ice::OperationMode mode,
const std::vector< std::byte > & inParams,
std::vector< std::byte > & outParams,
const Ice::Context & context = Ice::noExplicitContext ) const

Invokes an operation.

Parameters
operationThe name of the operation to invoke.
modeThe operation mode (normal or idempotent).
inParamsAn encapsulation containing the encoded in-parameters for the operation. You can pass an empty byte sequence when the operation takes no in-parameters; the Ice runtime then marshals an empty encapsulation.
outParamsAn encapsulation containing the encoded result.
contextThe request context.
Returns
true if the operation completed successfully, false if it completed with a user exception.
Remarks
When this proxy is a oneway, datagram, or batch proxy, this function returns true and an empty outParams as soon as the request is accepted by the transport or added to the batch.