Mezeo Ready Developer Center
May 17, 2012, 06:49:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
Author Topic: application/vnd.csp.container-info+xml POST  (Read 368 times)
nandan
Newbie
*
Posts: 4


View Profile
« on: July 13, 2010, 08:27:23 PM »

Hi !

I've created two containers and now I want one container to move inside the other. I followed instructions on the howto documentation but I keep getting an error like this :

XML Syntax Error: Namespace prefix xlink for type on parent is not defined, line 1, column 36

this is the xml im using:

updatecontainer.xml
  1 <container>
  2   <parent xlink="https://xyz.abc.com/v2/containers/ABC123" xlink:type="simple"/>
  3 </container>
                   
curl statement:

curl -v -u <username>:<password> -X PUT -H 'Content-Type: application/vnd.csp.container-info+xml' https://xyz.abc.com/v2/containers/XYZ12345 -d @updatecontainer.xml


Logged
Travis McLane
Mezeo Employee
Newbie
*****
Posts: 21



View Profile
« Reply #1 on: July 13, 2010, 08:33:57 PM »

The example shown in the Curl Howto is missing the xmlns:xlink declaration.
I will correct this momentarily but the missing information you need is shown below:

 <container xmlns:xlink="http://www.w3.org/1999/xlink">
  <parent xlink:href="https://xyz.abc.com/v2/containers/ABC123" xlink:type="simple"/>
  </container>
Logged
nandan
Newbie
*
Posts: 4


View Profile
« Reply #2 on: July 13, 2010, 08:53:13 PM »

Thanks !

one more quick help needed:

after changing that its giving me this error:
XML Failed Validation: Element 'container': Missing child element(s). Expected is one of ( name, created, inproject, modified, owner, version, shared, accessed, bytes, contents )
Logged
Travis McLane
Mezeo Employee
Newbie
*****
Posts: 21



View Profile
« Reply #3 on: July 19, 2010, 10:44:32 AM »

I apologize for the incorrect information.
At the time that the curl document was written the 'name' element wasn't required.
This has changed and I would recommend that at a minimum the 'name' element be also added to the application/vnd.csp.container-info+xml document.

Note:
A application/vnd.csp.file-info+xml document will also require a <mime_type> element in addition to the name.

In light of this I would recommend that you send a complete application/vnd.csp.container-info+xml document when you 'move' a container.
Logged
Pages: [1]
 
Jump to:  

© Mezeo Software. All rights reserved. | Privacy Policies | Contact Us | Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC