Does changeAlbumSettings work ?

mattmattbobattmattmattbobatt Registered Users Posts: 17 Big grins
I'm plugging along and I'm using the java xmlrpc client so I can't see my xml output. Just wanted to check to make sure this call really works.

If I call getAlbumInfo I get exactly what I expect back but if I fuss with the settings and call changeAlbumSettings nothing changes and I don't get errors.

Comments

  • BaldyBaldy Registered Users, Super Moderators Posts: 2,853 moderator
    edited February 18, 2005
    I'm plugging along and I'm using the java xmlrpc client so I can't see my xml output. Just wanted to check to make sure this call really works.

    If I call getAlbumInfo I get exactly what I expect back but if I fuss with the settings and call changeAlbumSettings nothing changes and I don't get errors.
    By the way, mattmattbobatt is the guy revving our Mac uploader to bring it up to 2.0. So ya'll be nice and helpful because the Mac faithful will love you for it.
  • DavidTODavidTO Registered Users, Retired Mod Posts: 19,160 Major grins
    edited February 18, 2005
    Baldy wrote:
    By the way, mattmattbobatt is the guy revving our Mac uploader to bring it up to 2.0. So ya'll be nice and helpful because the Mac faithful will love you for it.

    Yay mattmattbobatt!

    What's on the list of features? Or is that too much too soon?

    Need beta testers?
    Moderator Emeritus
    Dgrin FAQ | Me | Workshops
  • mattmattbobattmattmattbobatt Registered Users Posts: 17 Big grins
    edited February 18, 2005
    DavidTO wrote:
    Yay mattmattbobatt!

    What's on the list of features? Or is that too much too soon?

    Need beta testers?

    I could tell you but them I'd have to kill you.

    No, really, It's too soon.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 28, 2005
    Did u get it to work ?
    Hey Matt,

    Did you get this working in the end ?

    whenever I call changeAlbumSettings the responseXML contains empty xml elements.

    grrrr.....on't you hate when a cool new feature (in your code) should work, but doesn't !!!!

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • mattmattbobattmattmattbobatt Registered Users Posts: 17 Big grins
    edited March 1, 2005
    devbobo wrote:
    Hey Matt,

    Did you get this working in the end ?

    whenever I call changeAlbumSettings the responseXML contains empty xml elements.

    grrrr.....on't you hate when a cool new feature (in your code) should work, but doesn't !!!!

    Cheers,

    David

    OK matt has be beating the crap out of every other feature and is left with one huge hole and that is the changeAlbumSettings call. Hmm speaking in third person is a sign of madness isn't it ? Anyway I am getting back to it. I was avoiding it for a while because the RPC calls are done from some very convenient java code that I inherited. It's nice but makes debugging a real pain. I finally have a dump of the xml code that I'm sending in the rpc. Can anyone tell me where I'm going wrong ? I'm sure as soon as I hit "post" it will come to me but facing humiliation is always a good motivator. Sorry that it's hard to read. I used DreamWeaver to format it a little and it likes to put everything on separate lines. The POST puts it on a single line so this is a little easier to read.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <methodCall>
    <methodName>
    changeAlbumSettings
    </methodName>
    <params>
    <param>
    <value>
    changed to protect the innocent
    </value>
    </param>
    <param>
    <value>
    <int>
    403136
    </int>
    </value>
    </param>
    <param>
    <value>
    <struct>
    <member>
    <name>
    Share
    </name>
    <value>
    <int>
    1
    </int>
    </value>
    </member>
    <member>
    <name>
    Filenames
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Password
    </name>
    <value></value>
    </member>
    <member>
    <name>
    SortDirection
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    AlbumID
    </name>
    <value>
    <int>
    403136
    </int>
    </value>
    </member>
    <member>
    <name>
    LastUpdated
    </name>
    <value>
    2005-02-18 10:29:06
    </value>
    </member>
    <member>
    <name>
    Title
    </name>
    <value>
    Monkeys
    </value>
    </member>
    <member>
    <name>
    EXIF
    </name>
    <value>
    <int>
    1
    </int>
    </value>
    </member>
    <member>
    <name>
    External
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Comments
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    CategoryID
    </name>
    <value>
    <int>
    1
    </int>
    </value>
    </member>
    <member>
    <name>
    Watermark
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Keywords
    </name>
    <value></value>
    </member>
    <member>
    <name>
    Printable
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Protected
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    ImageCount
    </name>
    <value>
    <int>
    2
    </int>
    </value>
    </member>
    <member>
    <name>
    SubCategoryID
    </name>
    <value>
    <int>
    63119
    </int>
    </value>
    </member>
    <member>
    <name>
    HighlightID
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Header
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    TemplateID
    </name>
    <value>
    <int>
    1
    </int>
    </value>
    </member>
    <member>
    <name>
    Public
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    CommunityID
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    SortMethod
    </name>
    <value>
    Position
    </value>
    </member>
    <member>
    <name>
    Larges
    </name>
    <value>
    <int>
    1
    </int>
    </value>
    </member>
    <member>
    <name>
    Originals
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Description
    </name>
    <value></value>
    </member>
    <member>
    <name>
    Clean
    </name>
    <value>
    <int>
    0
    </int>
    </value>
    </member>
    <member>
    <name>
    Position
    </name>
    <value>
    <int>
    3
    </int>
    </value>
    </member>
    </struct>
    </value>
    </param>
    </params>
    </methodCall>
  • mattmattbobattmattmattbobatt Registered Users Posts: 17 Big grins
    edited March 1, 2005
    Wow. Looked good when I typed it. Looks like crap when I checked it. Sorry, not sure what happened. If you reply you can see it. Go figure ?
  • NikolaiNikolai Registered Users Posts: 19,035 Major grins
    edited March 1, 2005
    I mentioned that before...
    Wow. Looked good when I typed it. Looks like crap when I checked it. Sorry, not sure what happened. If you reply you can see it. Go figure ?
    dgrin forum engine does not handle html/xml well. The only possible way to post I found is surround it with php blocks and do not preview/edit. It would work this one time.

    So, what was that data you were posting?;-)
    "May the f/stop be with you!"
  • mattmattbobattmattmattbobatt Registered Users Posts: 17 Big grins
    edited March 1, 2005
    Nikolai wrote:
    dgrin forum engine does not handle html/xml well. The only possible way to post I found is surround it with php blocks and do not preview/edit. It would work this one time.

    So, what was that data you were posting?;-)

    I was posting my XML-RPC data for changeAlbumSettings. Was hoping someone might see something that I'm missing.
  • NikolaiNikolai Registered Users Posts: 19,035 Major grins
    edited March 1, 2005
    Well, if you try to repost
    I was posting my XML-RPC data for changeAlbumSettings. Was hoping someone might see something that I'm missing.
    .. in the way I described, someone actually may be able to read it and might get some answers for you, neh?

    Cheers!1drink.gif
    "May the f/stop be with you!"
  • mattmattbobattmattmattbobatt Registered Users Posts: 17 Big grins
    edited March 1, 2005
    Let's try this again. I POSTed this rpc call from a test page I made through a PEAR xlp-rpc client. Looks clean to me. I get an empty string from smugmug and no error but it doesn't update the album settings.

    Has anyone else ever made changeAlbumSettings work ?

    [PHP]
    <?xml version="1.0"?>
    <methodCall>
    <methodName>changeAlbumSettings</methodName>
    <params>
    <param>
    <value><string>mysessionIDhere</string></value>
    </param>
    <param>
    <value><int>403136</int></value>
    </param>
    <param>
    <value><struct>
    <member><name>Description</name>
    <value><string>come on</string></value>
    </member>
    <member><name>Keywords</name>
    <value><string>You Me It</string></value>
    </member>
    <member><name>Public</name>
    <value><boolean>1</boolean></value>
    </member>
    <member><name>Share</name>
    <value><boolean>1</boolean></value>
    </member>
    </struct></value>
    </param>
    </params>
    </methodCall>
    [/PHP]

    And this reply:
    [PHP]
    <PRE>---GOT---
    HTTP/1.1 200 OK
    Date: Wed, 02 Mar 2005 04:26:42 GMT
    Server: Apache
    Set-Cookie: smstatus=10.27.27.13.1109737602227981; 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=myCookieHere; path=/; domain=.smugmug.com
    Connection: close
    Content-Type: text/xml

    <?xml version="1.0" encoding="iso-8859-1"?>
    <methodResponse>
    <params>
    <param>
    <value>
    <string/>
    </value>
    </param>
    </params>
    </methodResponse>

    ---END---
    </PRE><PRE>---EVALING---[31 chars]---
    new XML_RPC_Value("", 'string');
    ---END---</PRE>

    [/PHP]
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 1, 2005
    matt..
    I get identical results...i also posted another thread in the hope that someone may do something about it.

    Extremely frustrating eek7.gifeek7.gif

    David
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.