WordPress.org

Ready to get started?Download WordPress

Forums

XML-RPC Post from Java (2 posts)

  1. changlll
    Member
    Posted 6 years ago #

    I am using the redstone xmlrpc Java library to test posting to WordPress. I'm passing in username & password of the admin account and '1' for blog id and I keep getting "bad username/password combination". Is the blog id relevant to this error? I'm new to wordpress, and my guess would be that either the username or the password is wrong, but the auth info I'm using is given to me by the blog administrator who set up the admin account for this blog. Are the admin username/password the info I should be passing in when I call client invoke to the xmlrpc.php url? Or is it expecting a different set of username/password? How about the blog id? Is this really used?

    Thank you very much!

  2. Joseph Scott
    Member
    Posted 6 years ago #

    You don't mention which method you are calling. Is it metaWeblog.newPost? The blog id value isn't used, so sending 1 as the value for it is fine.

    Can you login via wp-admin using the same username and password? If not then it is a username/password problem.

Topic Closed

This topic has been closed to new replies.

About this Topic