Thom McGrath wrote:
If you only need client functionality, then here's your answer: http://thezaz.com/opensource/realbasic/xml/rpc/client/
. If you need client and server, then why not implement your own protocol?
The classes above are the same classes that our Feedback app uses to do all of its communication, so they're pretty robust.
I am using the zaz stuff as you suggested. However, I must be missing something. I create a message using the various AddParam_x methods. The server gets what I send and then some. It appears that there is always a null parameter at the end of each message. This is in the up event of an UpDownArrow:
dim m as new xmlrpc.message
dim v0 as Variant
dim v1 as variant
self.count = self.count + 1
v0 = self.count
v1 = 0
txText.text = str( self.count )
m.methodname = "mcastRpc"
m.addparam "\x00\x00\x02" // &h000002 // our address
m.addparam 1 // group
m.addparam 2 // (ttl) time to live (hips)
m.addparam_array array( v0, v1 ) //setButtonCount arg
client1.rpcserver = "http://localhost:8080"
client1.sendmessage mHere is what the server recieves:
mcastRpc(\x00\x00\x02, 1, 2, setButtonCount, [5, 0],
The last comma (], ) should not be there.
I realize this may be out of your coverage. Just thought you might see something obvious.