Options

bugs with XML-RPC API

shahineoshahineo Registered Users Posts: 38 Big grins
Hello-

I am writing a .NET Class that wraps the XML-RPC API and I have run into two issues so far:

1) getAlbumInfo returns a null XML body in the HTTP Response:
POST /xmlrpc/ HTTP/1.1
Content-Type: text/xml
User-Agent: XML-RPC.NET
Content-Length: 316
Expect: 100-continue
Host: upload.smugmug.com

<?xml version="1.0"?>
<methodCall>
<methodName>getAlbumInfo</methodName>
<params>
<param>
<value>
<string>f1af3b1767f0ea357827fff7c36c7d71</string>
</value>
</param>
<param>
<value>
<i4>366935</i4>
</value>
</param>
</params>
</methodCall>


HTTP/1.1 200 OK
Date: Sat, 22 Jan 2005 19:47:18 GMT
Server: Apache
Set-Cookie: smstatus=10.27.27.13.1106423238034040; path=/; max-age=3024000; domain=.smugmug.com
Accept-Ranges: bytes
X-Powered-By: smugmug/1.1.0
Cache-Control: private, max-age=1, must-revalidate
Pragma: 
Set-Cookie: SMSESS=f1af3b1767f0ea357827fff7c36c7d71; path=/; domain=.smugmug.com
Content-Length: 0
Content-Type: text/html; charset=ISO-8859-1


2) getImages always returns a fault code (myalbum is public and I am the owner).
POST /xmlrpc/ HTTP/1.1
Content-Type: text/xml
User-Agent: XML-RPC.NET
Content-Length: 313
Expect: 100-continue
Host: upload.smugmug.com

<?xml version="1.0"?>
<methodCall>
<methodName>getImages</methodName>
<params>
<param>
<value>
<string>ba4129acdae77fa2d8417cee69145928</string>
</value>
</param>
<param>
<value>
<i4>366935</i4>
</value>
</param>
</params>
</methodCall>


HTTP/1.1 200 OK
Date: Sat, 22 Jan 2005 19:48:57 GMT
Server: Apache
Set-Cookie: smstatus=10.27.27.13.1106423337235852; path=/; max-age=3024000; domain=.smugmug.com
Accept-Ranges: bytes
X-Powered-By: smugmug/1.1.0
Cache-Control: private, max-age=1, must-revalidate
Pragma: 
Set-Cookie: SMSESS=ba4129acdae77fa2d8417cee69145928; path=/; domain=.smugmug.com
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<int>4</int>
</value>
</member>
<member>
<name>faultString</name>
<value>
<string>invalid user</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>

Comments

  • Options
    NikolaiNikolai Registered Users Posts: 19,035 Major grins
    edited January 22, 2005
    You're not alone
    Search for those methods in this forum - you'll see other ppl also having problem with them..

    Cheers!1drink.gif
    "May the f/stop be with you!"
Sign In or Register to comment.