On Jan 20, 9:30 am, "Anthony Jones" <A...@yadayadayada.com> wrote:
> "vunet" <vunet...@gmail.com> wrote in message
>
> news:aa1cf067-ae04-45a5-afef-...
>
>
>
> > Hello,
> > I've just installed ASPXMLRPC library and testing their main function:
>
> > xmlRPC ("URL", "command_name", params)
>
> > The function converts all parameters to XML, sends a request to third-
> > party server and receives XML response. It seems to be getting
> > response fine. But when I call the function like this:
>
> > myresp = xmlRPC ("http://someurl.com", "get", paramList)
>
> > I get error on this line:
>
> > "Wrong number of arguments or invalid property assignment"
>
> > All code details are:
>
> > dim myresp
> > ReDim paramList(1)
> > set dict=Server.createObject("Scripting.Dictionary")
> > dict.add "key_id", "SOME_ID"
> > dict.add "area", "blah"
> > set paramList(0)=dict
> > myresp = xmlRPC ("http://someurl.com", "get", paramList)
> > response.write(myresp)
>
> > Please recommend a fix. Thank you.
>
> I don't know the xmlRPC product, however, I would hazard a guess that you
> can't pass a reference to a dictionary object to a remote location in the
> manner you appear to be attempting.
>
> I suspect its not expecting any element of the paramList array to be an
> object (or at least any object should have a default property that isn't an
> object).
>
> --
> Anthony Jones - MVP ASP/ASP.NET
I tested the function and it runs perfectly fine: it takes dictionary
object, builds XML correctly, sends XML and I get responseText and
responseXML successfully.
But calling the function produces that error in that same line where I
call it:
Wrong number of arguments or invalid property assignment
line: myresp = xmlRPC ("http://someurl.com", "get", paramList)
|