Re: embedded CIM Instance

Karl Schopmeyer <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
What to the strings look like and what does the cim/xml look 
like?  If the cim/xml does not contain the embeddedobject attribute 
for the property, the client could not determine if the strings 
received are actually embedded objects.  Remember that in cim/xml today.

1. EmbeddedInstance and object properties are defined in mof as a 
string type with a qualifier to identify them as embedded objects or instances.
2. The embedded instance is normally encoded in the cim/xml 
protocol/encoding as xml with the xml special characters escaped and 
the embedded Object attribute in the cimx/ml to tell the receiver 
that this is an embedded object.

3. In pegasus, we actually added an embeddedinstance DataType and 
attempt in the client infrastructure to decode your object if the 
attribute is attached.

Note that we are finishing some extensions to our command line client 
tool cimcli that adds capabilities for embedded instance/object 
creation, display, etc. and that will shortly be in Pegasus head of 
tree  It can be seen now as bug 9007 (preliminary) and PEP 361.

Karl
Thanks for your message at 11:53 PM 8/18/2011. Your message was:
>Hi all,
>    We need to return an array of CIM Instances in a vendor 
> extension method in our CMPI Provider. we have defined the method as follows:
>
>uint32 xxx(
>
>[IN (false), OUT, Description ("xxx"), EmbeddedInstance( "Our_Class")]
>
>string instances[]);
>
> From provider code we are adding out argument of type CMPI_instanceA.
>Our client uses SBLIM 2.0.9.3 to get CIM Instances. When we are 
>using OpenPegasus as a CIMOM, client receives the data as an array 
>of CIM Instances properly. But when we use SFCB in Vmware ESX as 
>CIMOM . Client is receiving it as array of strings only, not as CIM Instances.
>
>Any help?
>
>
>Thanks and regards,<?xml:namespace prefix = o ns = 
>"urn:schemas-microsoft-com:office:office" />
>
>Souvik Roy
>
>Wipro Technologies
>
>Block - DM, Sector -V Salt Lake. Kolkata- 700091. <?xml:namespace 
>prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />India
>
>VOIP: 8584750
>
>Direct: +91 33 30954750
>
>
>
>Only when the last tree has died and the last river been poisoned 
>and the last fish been caught will we realise we cannot eat money
>
>
>Please do not print this email unless it is absolutely necessary.
>
>The information contained in this electronic message and any 
>attachments to this message are intended for the exclusive use of 
>the addressee(s) and may contain proprietary, confidential or 
>privileged information. If you are not the intended recipient, you 
>should not disseminate, distribute or copy this e-mail. Please 
>notify the sender immediately and destroy all copies of this message 
>and any attachments.
>
>WARNING: Computer viruses can be transmitted via email. The 
>recipient should check this email and any attachments for the 
>presence of viruses. The company accepts no liability for any damage 
>caused by any virus transmitted by this email.
>
>www.wipro.com

Karl Schopmeyer                   Inova Development Inc.
305 Spring Creek Village, Suite 475 -  Dallas TX, 75248 USA
EMAIL: [email protected]       FAX: 1-972-239-0326
Phone 1-972-814-5581
Skype: kschopmeyer         Skype Phone: (214) 556-5971
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.