Re: whats the use of * in {s:i,s:i,*} ?

[email protected]
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
>Subject: [xml-rpc] whats the use of * in {s:i,s:i,*} ?

See documentation of xmlrpc_parse_value() in the manual:
<http://xmlrpc-c.sourceforge.net/doc/libxmlrpc.html>.  (It refers you
to the xmlrpc_decompose_value() function, which interprets the format
string the same way).

>1) My program was crashing because of the * in
>xmlrpc_parse_value(&HA_env,HA_result,"{s:i,*}","ErrorCode",&HA_ret);
>
>WHY THIS HAPPENED?

I don't know; it doesn't crash for me.  There are test cases for this in
the automated tests, so maybe you should run those (int he Xmlrpc-c
source tree, go into the src/test directory, do a 'make' and the run
'test'.  If that fails, let me know and I can look further).

>At client side i need to parse them all,How is this
>possible when we dont know the number of key:value
>pairs coming from the server at client side ??

See xmlrpc_struct_read_member() and xmlrpc_struct_size() in the
above referenced manual.

-- 
Bryan Henderson                                    Phone 408-621-2000
San Jose, California


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
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.