PDA

View Full Version : smugmug.categories.create not working


dilbert
May-13-2005, 11:32 PM
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]

rutt
May-15-2005, 05:27 AM
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:


<?xml version="1.0"?>
<methodCall>
<methodName>smugmug.categories.create</methodName>
<params>
<param>
<value>
<string>3171f478c1f11d11c2ea1b7c6f3a1b04</string>
</value>
</param>
<param>
<value>
<string>test</string>
</value>
</param>
</params>
</methodCall>


and here is the result:


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