Title: XML-RPC Post from Java
Last modified: August 19, 2016

---

# XML-RPC Post from Java

 *  [changlll](https://wordpress.org/support/users/changlll/)
 * (@changlll)
 * [18 years ago](https://wordpress.org/support/topic/xml-rpc-post-from-java/)
 * 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!

Viewing 1 replies (of 1 total)

 *  [Joseph Scott](https://wordpress.org/support/users/josephscott/)
 * (@josephscott)
 * [18 years ago](https://wordpress.org/support/topic/xml-rpc-post-from-java/#post-784167)
 * 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.

Viewing 1 replies (of 1 total)

The topic ‘XML-RPC Post from Java’ is closed to new replies.

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [Joseph Scott](https://wordpress.org/support/users/josephscott/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/xml-rpc-post-from-java/#post-784167)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
