2

I am working on a site, and I want to integrate my site with an external site; for that, I need to use web services to get data from the external server. I don't know the technology used by the server.

I have to work as client. Can any one please tell me hoe to call web services from my site? Please write any code if it is required. Will drupal_http_request() help me?

I am using Drupal 6.

2 Answers 2

1

You should have a look at the Services module. You can use XMLRPC and/or REST server (and many more) to communicate with your remote server. Link to the documentation.

A standardized solution of integrating external applications with Drupal. Service callbacks may be used with multiple interfaces like REST, XMLRPC, JSON, JSON-RPC, SOAP, AMF, etc. This allows a Drupal site to provide web services via multiple interfaces while using the same callback code.

3
  • I had gone through services module, But I dont know how to use that for my purpose. Services module is used if we want to act as server, Am I right?
    – Ankur Jain
    Commented Sep 4, 2012 at 8:49
  • yes, you're right. But, that is not only what services can do. You can watch services inside out.
    – AjitS
    Commented Sep 4, 2012 at 8:56
  • Thankyou for sharing the link of video BTW I had seen it already. But still dont know what to do. Can you please tell me it step by step.
    – Ankur Jain
    Commented Sep 4, 2012 at 9:07
0

The Alternate solution is Views . Install Views module and Json document Views module. With this you can get data from your site in many ways. Have a try

Not the answer you're looking for? Browse other questions tagged or ask your own question.