336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
import java.util.Hashtable;
import java.util.Vector;

import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

public class BlogTest {

    private XmlRpcClient server = null;
    private XmlRpcClientConfigImpl config = null;
   
    private Vector<Object> params = null;
    private Hashtable<String, Object> table = null;
   
    private final static String SERVER_URL = "???????";
    private final String blogid = "?????";
    private final String account = "?????";
    private final String pwd = "?????";
   
    private BlogTest()
    {
        server = new XmlRpcClient();
        config = new XmlRpcClientConfigImpl();
        try{
            config.setServerURL(new java.net.URL(SERVER_URL));
        }catch(Exception e){e.printStackTrace();}
       
        params = new Vector<Object>();
        table = new Hashtable<String, Object>();
    }
       
    public void newPost(String title, String description, String tag, String[] categories, boolean publish)
    {

        params.clear();
        table.clear();
       
        params.add(blogid);
        params.add(account);
        params.add(pwd);
       
        table.put("title", title);
        table.put("description", description);
        table.put("mt_keywords", tag);
        table.put("categories", categories);
       
        params.add(table);
        params.add(publish);
       
       
        try{
            server.execute(config, "metaWeblog.newPost", params);

        }catch(Exception e)
        {
            e.printStackTrace();
        }
           
    }
   
    public static void main(String[] args) {
       
        BlogTest blog = new BlogTest();
        String[] ca = new String[1];
        ca[0] = new String("Category/SubCategory");
        blog.newPost("Title", "Description", "TAG1,TAG2", ca, true);
       
    }
}

--------------------------------------
위에 빨간색의 앞에 두개는.. 블로그의 환경설정 값입니다. (아래 그림 참조)
나머지 account, pwd는 블로그 로그인할때 사용하는 계정과 비밀번호입니다.




xmlrpc는 별도로 첨부했습니다.




+ Recent posts