Real Software Forums
http://forums.realsoftware.com/

What is the best way to do XML-RPC?
http://forums.realsoftware.com/viewtopic.php?f=2&t=34895
Page 2 of 2

Author:  Thom McGrath [ Mon Feb 25, 2013 3:09 pm ]
Post subject:  Re: What is the best way to do XML-RPC?

Your definition is correct. Take the parenthesis off the AddParam_Array. It should look like
m.AddParam_Array(wp_post)

Author:  tkmedia [ Mon Feb 25, 2013 6:49 pm ]
Post subject:  Re: What is the best way to do XML-RPC?

not sure what is going on with arrays

But using a dictionary and using m.AddParam_dictionary works fine.


Thanks Thom

I owe you a beer.

and If your still in the HFTD area i'd be happy to buy you one.

Tim

Author:  Thom McGrath [ Mon Feb 25, 2013 6:57 pm ]
Post subject:  Re: What is the best way to do XML-RPC?

tkmedia wrote:
not sure what is going on with arrays

But using a dictionary and using m.AddParam_dictionary works fine.


Thanks Thom

I owe you a beer.

and If your still in the HFTD area i'd be happy to buy you one.

Tim

Thanks. I'm still in CT, but as of last week, not so in the Hartford area. I should update my profile.

Anyway, you don't owe me anything. And even if you did, I don't drink :P

Author:  tkmedia [ Sat Mar 09, 2013 5:16 am ]
Post subject:  Re: What is the best way to do XML-RPC?

still having problems sending arrays

from the encode method

select case type
case kDataType_Array
dim data as xmlelement = xmldoc.createelement("data")
dim xmlvalue as xmlelement
dim arr() as variant = value
for i = 0 to ubound(arr)
xmlvalue = xmldoc.createelement("value")
xmlvalue.appendchild encode(varianttopair(arr(i)),xmldoc)
data.appendchild xmlvalue
next


'/////////////////////////////breaks here on arrays
node.appendchild data
'/////////////////////////////breaks here on arrays


it gives Nilobject exception


What am I missing
I am passing
<data><value><string>product_type</string></value><value><int>13</int></value></data>

to node.appendchild data

any help would be greatly appreciated

Thanks

Tim

Page 2 of 2 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/