smugmug.categories.create not working

dilbertdilbert Registered Users Posts: 8 Beginner grinner
Can anyone tell me why the following XML doesn't work: (I have replaced the starting < with ( so it wouldn't be stripped out in the forums, but otherwise untouched. It creates a category with a blank name, and the response comes back blank as well. but if i go to smugmug.com and login and view categories there is a new category listed in the drop down, with no name. this is driving me nuts, I posted earlier and never got a response (I did get the upload to work in perl finally).
Also worth noting, I can successfully create albums, including setting of options and it looks pretty much the same as below with extra params of course.
Any suggestions appreciated.
Thanks

[code]
(?xml version="1.0" encoding="UTF-8"?>
(methodCall>
(methodName>smugmug.categories.create
(/methodName>
(params>
(param>
(value>
(string>f3098bb8413a659011bbbbb03e25e8163
(/string>
(/value>
(/param>
(param>
(value>
(string>Test Category1
(/string>
(/value>
(/param>
(/params>
(/methodCall>

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

[\code]

Comments

  • ruttrutt Registered Users Posts: 6,511 Major grins
    edited May 15, 2005
    I think this is a bug. I also have this problem. I submitted a new thread on the topic, but it somehow disappeared (maybe deleted because it was a duplicate?). Here are the contents.

    There seems to be a bug with both categories.create and subcategories.create. I get this with the xmlrpc interface and both version 1.1.0 and beta 1.1.1. It does works the API version 1.0.

    The create call returns an empty string and creates a category with no Title.

    Here is the request xml:
    &#60;?xml version="1.0"?&#62;
    &#60;methodCall&#62;
      &#60;methodName&#62;smugmug.categories.create&#60;/methodName&#62;
      &#60;params&#62;
        &#60;param&#62;
          &#60;value&#62;
            &#60;string&#62;3171f478c1f11d11c2ea1b7c6f3a1b04&#60;/string&#62;
          &#60;/value&#62;
        &#60;/param&#62;
        &#60;param&#62;
          &#60;value&#62;
            &#60;string&#62;test&#60;/string&#62;
          &#60;/value&#62;
        &#60;/param&#62;
      &#60;/params&#62;
    &#60;/methodCall&#62;
    

    and here is the result:
    &#60;?xml version="1.0" encoding="iso-8859-1"?&#62;
    &#60;methodResponse&#62;
    &#60;params&#62;
     &#60;param&#62;
      &#60;value&#62;
       &#60;string/&#62;
      &#60;/value&#62;
     &#60;/param&#62;
    &#60;/params&#62;
    &#60;/methodResponse&#62;
    
    If not now, when?
Sign In or Register to comment.