Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:09:52+00:00 2026-06-01T09:09:52+00:00

I’m trying to use Apache XMLRPC to manage posts at a small weblog service.

  • 0

I’m trying to use Apache XMLRPC to manage posts at a small weblog service. The support isn’t great there and they can’t really help. They say the weblog supports the metaweblog api.

I’m trying to retrieve all my posts using the rpc “metaWeblog.getPost”:

token = client.invoke("metaWeblog.getPost", new Object[] {123, // also tried "123" and "\"123\""
                                                          "username", 
                                                          "password"});

When I use 123 (no quotes), I get this response: java.lang.Exception: java.lang.Integer cannot be cast to java.lang.String

When I use “123” or “\”123\”” (quotes), I get this response: java.lang.Exception: Invalid postid format: 123

This code does work with my WordPress weblog’s.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:09:54+00:00Added an answer on June 1, 2026 at 9:09 am

    WordPress probably works because it is in PHP and isn’t as type sensitive as java.

    The docs for metaWeblog say that the raw xml representation of a request looks like this:

    <?xml version="1.0"?>
    
    <methodCall>
    
        <methodName>metaWeblog.getPost</methodName>
    
        <params>
    
            <param>
    
                <value><i4>1829</i4></value>
    
                </param>
    
            <param>
    
                <value>Bull Mancuso</value>
    
                </param>
    
            <param>
    
                <value><base64>bm93YXk=</base64></value>
    
                </param>
    
            </params>
    
        </methodCall>
    

    So you need to try establishing the params as variables of the right type

    The postId needs to be a 32 big integer, the password is base64 encoded, the username is a string.

    Declare your variables properly and pass variables, not quoted constants, to the invoke method.

    Then, the xml that is formed under the hood by the rpc library will make sure that <i4></i4> is around the post id, etc.

    Hope this helps a little. At the very least, you can prove that the other side isn’t properly implementing metaWeblog. At best, you’ve solved your problem and can keep moving.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.