Archived
This forum has been archived. Please start a new discussion on GitHub.
out Parameters
in Help Center
I have the following question:
I use in my interface definition a method, called "getDataString(string value, out string)".
My client use AMI to involve this method.
But I can't reach the out Parameter.
Have I to use AMD on the server side to reach the out Parameter while I'm using AMI on the client Side?
I use in my interface definition a method, called "getDataString(string value, out string)".
My client use AMI to involve this method.
But I can't reach the out Parameter.
Have I to use AMD on the server side to reach the out Parameter while I'm using AMI on the client Side?
0
Comments
-
No. The usage of AMI on the client side has no relation to AMD on the server side (and vice versa). That is the client is unaware how the server implements its servants, and the server is unaware of how the client calls upon its objects.
The out parameter is returned in the AMI callback. For example, for this interface:interface Foo { ["ami"] void doit(string inparam, out string outparam); };
You would call on the proxy.bool doit_async(const ::Demo::AMI_Foo_doitPtr&, const ::std::string&);
And the outparam is returned in the ice_response callback.class AMI_Foo_doitI : AMI_Foo_doit { public: virtual void ice_response(const ::std::string&); virtual void ice_exception(const ::Ice::Exception&); };0 -
out parameter
Thank you very much for your help!
It works now!:)0