New post created with XML-RPC works fine but fails to assign category

I figured out the issue. Actually it is my mistake.
I am using XML-RPC metaWeblog.newPost but I was applying solution which is for XML-RPC wp.newPost

So correct solution in case of xml-rpc metaWeblog.newPost is –

$content['categories'] = array('Featured'); //Works.

And in case of xml-rpc wp.newPost, it is –

$content['terms'] = array('category' => array( 10 ) ); //Works

Hope this will help who is newbie like me.