Over the last few days I have been trying to figure out how to properly use the services node.save function to save more than just a simple content type such as story which has just a title and a body. This I can do w/o any issues. The issues that im trying to figure out is when you have a content type lets just say only these fields right now
content type photo
* field_my_photo -- cck imagefield
--- fid i already had from file.save
Now, node.save gets a bit more complex to figure out how to save when you have imagefield in it, building my own test php script to call node.save and send a json formatted array across I was never able to get it to save a node.
Trying to pass this to node.save from my script
$node = array (
'type' => 'photo',
'title' => 'Test111',
'field_my_photo' => array (
'fid' => 60,
'title' => 'test',
'filename' => 'rubicon-ipa.jpg',
'filepath' => 'sites/default/files/rubicon-ipa.jpg',
'filesize' => '487002',
'uid' => 3,
'status' => 1,
'active' => 1
didnt seem to help..
then I started to dig though node.save in 6.2.2 and found out that it uses drupal_execute api call, which is great with forms you can fill out but gets more complex when your trying to figure out values to send to node.save that it will accept.
I was under the assumption originally it was using node_save.
So im a bit stumped as to figure out a way to easily understand what a custom content type with various cck fields wants and how to send that to node.save
I'm unable to find any documentation on this and the few I have asked have told me they wrote their own service for situations like this.
I can easily write my own service that uses node_save, but trying to stay consistent with the services methods I wanted to use node.save
thoughts on how to solve this mystery?