Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Nov 24, 2017 8:11 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: What is the best way to do XML-RPC?
PostPosted: Mon Feb 25, 2013 3:09 pm 
Offline
Site Admin
User avatar

Joined: Tue May 06, 2008 1:07 pm
Posts: 1464
Location: NotEvenOnTheMap, CT
Your definition is correct. Take the parenthesis off the AddParam_Array. It should look like
m.AddParam_Array(wp_post)

_________________
Thom McGrath - @tekcor
Web Framework Architect, Real Software, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is the best way to do XML-RPC?
PostPosted: Mon Feb 25, 2013 6:49 pm 
Offline

Joined: Wed Dec 21, 2011 11:31 pm
Posts: 13
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


Top
 Profile  
Reply with quote  
 Post subject: Re: What is the best way to do XML-RPC?
PostPosted: Mon Feb 25, 2013 6:57 pm 
Offline
Site Admin
User avatar

Joined: Tue May 06, 2008 1:07 pm
Posts: 1464
Location: NotEvenOnTheMap, CT
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

_________________
Thom McGrath - @tekcor
Web Framework Architect, Real Software, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is the best way to do XML-RPC?
PostPosted: Sat Mar 09, 2013 5:16 am 
Offline

Joined: Wed Dec 21, 2011 11:31 pm
Posts: 13
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group