Whilst import into single-value text fields and textareas works, import into multivalue text fields or lists does not work.
The data is fetched, but it is written a level too deep into the field.
It is clear when one looks at Devel tab of the target node: value & format & safe_value are written into field_fieldname['und'][0]['value'] rather than to field_fieldname['und'][0] as such. Same for field_fieldname['und'][1], field_fieldname['und'][2], ...
Tried both via XML and JSON, but same problem occurs in both -- there appears to be no way to write the values into the right array value.
Comments
Comment #2
spotzero commentedHi Vacilando,
You likely need to implement a custom WSData processor to chew your web service data into a data structure that can be given to the to Drupal fields.
Too implement a custom processor, you'll need to:
Implement a class that extends the WsData class (or the wsdata_simple_json_processor or wsdata_simple_xml_processor class if you're parsing JSON or XML).
Register the processor with hook_wsconfig_processor_info() so that it is visible to wsfields in the UI.
For examples:
This module only implements a couple processors: http://cgit.drupalcode.org/wsdata/tree/modules/wsdata_solr
Here's a good example of hook_wsconfig_processor_info(): http://cgit.drupalcode.org/wsdata/tree/wsdata.module#n11