api - WordPress new comment xmlrpc.php -


i've got problem: need post new comment using xmlrpc.php , post request.

i read documentation , wrote xml request. sent blog/xmlrpc.php, there problem: faultcode -32700 parse error. not formed.i tried find solution, other xml not work too.

my xml:

<?xml version="1.0" encoding="utf-8"?> <methodcall>     <methodname>wp.newcomment</methodname>     <params>         <param>             <value>                 <int>1</int>             </value>         </param>         <param>             <value>                 <string>grinj</string>             </value>         </param>         <param>             <value>                 <string>0</string>             </value>         </param>         <param>             <value>                 <int>1406</int>             </value>         </param>         <param>             <value>                 <struct>                     <member>                         <name>comment_parent</name>                         <value>                             <int>0</int>                         </value>                     </member>                     <member>                         <name>content</name>                         <value>                             <string>test</string>                         </value>                     </member>                     <member>                         <name>author</name>                         <value>                             <string>grinj</string>                         </value>                     </member>                     <member>                         <name>author_url</name>                         <value>                             <string>http://example.org</string>                         </value>                     </member>                     <member>                         <name>author_email</name>                         <value>                             <string>test@example.com</string>                         </value>                     </member>                 </struct>             </value>         </param>     </params> </methodcall> 


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -