By udaykumar on
Hello,
I have a requirement to construct the content from the webservice response. Can you please let us know how to implement in Drupal
Thanks and Regards
Uday
Hello,
I have a requirement to construct the content from the webservice response. Can you please let us know how to implement in Drupal
Thanks and Regards
Uday
Comments
A suggestion
Hi,
I would analyze the request signatures of your jax-ws provider. I would also analyze the document structure of your jax-ws response.
You can use drupal_http_request() http://api.drupal.org/api/drupal/includes!common.inc/function/drupal_http_request/7 to send a request from Drupal to your jax-ws provider.
You then need to parse the xml response. Take a look at the Drupal API function update_parse_xml http://api.drupal.org/api/drupal/modules!update!update.fetch.inc/function/update_parse_xml/7. That provides an example of how to parse an xml response.
I would suggest working on the request / response first. Once you know how to get the data, then work on how to "add" the data as Drupal content.
Hope that helps :)
Good Luck.