Start a Conversation

Unsolved

This post is more than 5 years old

411

September 30th, 2008 15:00

Smarts C++ API question

We are having trouble invoking a Server Tool using the Smarts C++ API.

We are using the operation "invokeSync" of an instance of class ICS_ActionManager sending the arguments:
- "target" as a sm_objref_t
- "action_id" as a sm_string_t
- "parameters" as a sm_anyval_array_t

So far it works for tools without parameters (user prompts) where the "parameters" argument is sent empty, but we can not find any documentation on which values to send inside the "parameters" sm_anyval_array_t , in which order and of which type. For example if the Server Tool is expecting 2 parameters, the most intuitive option would be to send two sm_string_t values inside the "parameters" sm_anyval_array_t but it wont work and fails returning the error "Remote server error".

Thanks.

36 Posts

October 1st, 2008 06:00

Unfortunately, the signature for complex method parameters are not documented in Smarts. The only way to figure out how it is used is to find an example. If you're lucky, you can find an asl script and deduce the signature.

In you particular case, I could not find any asl scripts that uses this operation with the parameters (only one I see is sending parameters as emtpy list, auto-action.asl).

Sorry all and all this is no help. I think you need someone from EMC to answer this one.

Regards,
Berkay Mollamustafaoglu
http://www.ifountain.com
Voip: + 1 703 349 0538
mberkay on yahoo, google and skype
No Events found!

Top