Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49197

Testing Services 3.x beta with xmlrpc

$
0
0

I have setup an endpoint called api.
It uses an xmlrpc server.
I have enabled system.connect in the resources tab.
I send this request:

POST http://mydomain.local/api HTTP/1.1
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, text/css, image/png, image/jpeg, image/gif;q=0.8, application/x-shockwave-flash, video/mp4;q=0.9, flv-application/octet-stream;q=0.8, video/x-flv;q=0.7, audio/mp4, application/futuresplash, /;q=0.5
x-flash-version: 10,2,152,26
Content-Type: application/x-www-form-urlencoded
Content-Length: 102
User-Agent: Shockwave Flash
Host: mydomain.local
Pragma: no-cache
Cookie: SESSdce96b2191ab3bf38d2c87cf563b1f7d=t2cn1v5pg1rd7d9ptlpr89kpk4

<methodCall>
  <methodName>system.connect</methodName>
  <ignoreWhite>true</ignoreWhite>
</methodCall>

And I get this response:

HTTP/1.1 200 OK
Date: Sat, 05 Mar 2011 05:25:18 GMT
Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.1
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Sat, 05 Mar 2011 05:25:18 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Connection: close
Content-Length: 378
Content-Type: text/xml

<?xml version="1.0"?>
<methodResponse>
  <fault>
  <value>
    <struct>
    <member>
      <name>faultCode</name>
      <value><int>-32601</int></value>
    </member>
    <member>
      <name>faultString</name>
      <value><string>Server error. Requested method system.connect not specified.</string></value>
    </member>
    </struct>
  </value>
  </fault>
</methodResponse>

How should I correctly address system.connect ?


Viewing all articles
Browse latest Browse all 49197

Trending Articles