- summary: Fails when supplied with Arrays of property values --> wbemcli: Fails when supplied with Arrays of property values
The wbemcli command does not work as expected when an Array of property values are supplied separated by commas.
Error Displayed:
*
* wbemcli: Http Exception: HTTP response code said error
*
When the attribute is of type 'string Array', i.e
string TestStr[] ,
and the values are supplied as comma seperated strings, the command execution fails.
Observation:
The XML generated by the wbemcli command indicates that the Property 'TestStr' is treated as a String and not as a StringArray.
<PROPERTY NAME="TestStr" TYPE="string"><VALUE.ARRAY><VALUE>123abc</VALUE></VALUE.ARRAY></PROPERTY></INSTANCE></IPARAMVALUE>
This should have been treated as
<PROPERTY.ARRAY NAME="TestStr" TYPE="string"><VALUE.ARRAY><VALUE>123abc</VALUE></VALUE.ARRAY></PROPERTY.ARRAY></INSTANCE></IPARAMVALUE>