WordPress.org

Support

Support » How-To and Troubleshooting » Using XMLRPC from Delphi

Using XMLRPC from Delphi

  • Hi! I want to create my own XMLRPC client. But I have a some trouble…
    I test my client with method “wp.newCategory” and my parameters are blog_id, user name, user pass, and then must bea array with name, description, slug and parent_id.
    The problem in Array. How I to have to use this paremeter?

    I use DXmlRpc package for delphi.
    See some of my code:

    RpcFunction := TRpcFunction.Create;
        RpcFunction.ObjectMethod := 'wp.newCategory';
        RpcFunction.AddItem(1);
        RpcFunction.AddItem('admin');
        RpcFunction.AddItem('pass');
    
    arr := TRPCArray.Create;
    arr.AddItem('name:dd');
    RpcFunction.AddItem(arr);
    
    RpcResult := RpcCaller.Execute(RpcFunction);

    When I use this code, I recive error that a last paremeter(array) is not string.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Using XMLRPC from Delphi’ is closed to new replies.