关于通过metaweblog提交博客内容到oschina?报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

关于通过metaweblog提交博客内容到oschina?报错

爱吃鱼的程序员 2020-06-09 14:28:38 67

报错:

<?xml version="1.0" encoding="UTF-8"?><methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><fault><value><struct><member><name>faultCode</name><value><i4>0</i4></value></member><member><name>faultString</name><value>No method matching arguments: [Ljava.lang.Object;</value></member></struct></value></fault></methodResponse>

<?xml version="1.0" encoding="UTF-8"?><methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><fault><value><struct><member><name>faultCode</name><value><i4>0</i4></value></member><member><name>faultString</name><value>No method matching arguments: [Ljava.lang.Object;</value></member></struct></value></fault></methodResponse>

发布:

Host: my.oschina.net
Content-Type: text/xml
User-Agent: The Incutio XML-RPC PHP Library
Content-Length: 652


<?xml version="1.0"?>
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param><value><array><data>
  <value><string>default</string></value>
  <value><string>******</string></value>
  <value><string>******</string></value>
  <value><struct>
  <member><name>title</name><value><string>test2016-05-21 23:50:01</string></value></member>
  <member><name>description</name><value><string>test2016-05-21 23:50:01</string></value></member>
  <member><name>categories</name><value><string></string></value></member>
</struct></value>
  <value><boolean>1</boolean></value>
</data></array></value></param>
</params></methodCall>

POST /action/xmlrpc HTTP/1.0
Host: my.oschina.net
Content-Type: text/xml
User-Agent: The Incutio XML-RPC PHP Library
Content-Length: 652

<?xml version="1.0"?>
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param><value><array><data>
  <value><string>default</string></value>
  <value><string>******</string></value>
  <value><string>******</string></value>
  <value><struct>
  <member><name>title</name><value><string>test2016-05-21 23:50:01</string></value></member>
  <member><name>description</name><value><string>test2016-05-21 23:50:01</string></value></member>
  <member><name>categories</name><value><string></string></value></member>
</struct></value>
  <value><boolean>1</boolean></value>
</data></array></value></param>
</params></methodCall>
请问这是哪里出错了呢?
XML PHP 数据格式
分享到
取消 提交回答
全部回答(1)
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题