A "web service" is a software system designed to support interoperable machine-to-machine interaction over the World Wide Web. Use this tag for questions about using web services in Drupal.

learn more… | top users | synonyms

1
vote
1answer
18 views

How to send a simple mail to a user?

I'm implementing a function that send the password to a user (if he forgot it). It's a really basic function, all I have is user email here is my function : function my_module_lost_password ...
0
votes
0answers
8 views

WSClient - Insert XML into a text parameter without it being html escaped

I'm using WSClient module to consume external APIs. One API I need to read requires a complex XML structure sent through REST. The complexity of the XML resides in the fact that each node needs ...
0
votes
1answer
27 views

Can someone explain the @RestResource annotation for building a Rest resource?

I am trying to create a RESTful web service. Above the class there is a comment/annotation /** * Represents entities as resources. * * @RestResource( * id = "entity", * label = ...
0
votes
1answer
39 views

Drupal 8 REST - POST json data denormalization error

I created rest resource plugin in a custom module and need to send some JSON data with the request, and access it in the post function. At the moment my post function does not do anything but return ...
0
votes
0answers
12 views

Data from another system through api calls in drupal 7 [closed]

I want to display data from some other system using SOAP API, how can I do that in drupal 7?
0
votes
1answer
11 views

Web Services - GET Request Article (HAL+JSON)

I'm trying to make a GET request to a specific article on my drupal 8 website (local). These are the steps I've done: Enabled all 4 Web Services modules at the modules page Created an article (url: ...
-1
votes
2answers
37 views

Drupal 8 Web Services … Callback functions?

I need a web service in Drupal 8 that can allow me to write my own PHP code... it seems like the RESTful Web Services module will only allow me to create/patch/delete the existing content types, ...
0
votes
1answer
17 views

How can I flag (follow) user by REST API using service resources?

I am using flag module to have the following user function. So that the followers will be able to read the blog of the users that they followed. Now I want to provide api for mobile application, when ...
0
votes
1answer
23 views

How do I create a node using web services and Anonymous user?

I have successfully installed the Services module and created a service with which I can retrieve a node or even several nodes (using Views Services) I've now configured an endpoint, whose purpose is ...
0
votes
1answer
46 views

Services GET request of more than one resource

I'm working with services 7.x-3.12, I need to create a web service in order to get a kind of "associative request" between : books(table stored in db) and categories(another table) those two tables ...
0
votes
0answers
17 views

import and update drupal webform submission from remote url

Is it possible to retrieve data from a remote server, pass it to a Drupal site, and if the corresponding webform is present, to update these values in the database, else, create a new webform ...
1
vote
0answers
91 views

Post/Upload file using Drupal Services Module without base64 (Using REST multipart/form-data )

I am sure its possible in Drupal also. Here is the reference for Java code http://stackoverflow.com/questions/5723429/use-rest-client-to-call-multipart-form-data-rest-web-service and ...
0
votes
1answer
104 views

Web Service Client - Changing SOAP-ENV: into soap:

This is reference to issue that I have with Web service client module, here is link to the previous issue: https://www.drupal.org/node/2508926 Overall I'm trying to change the REQUEST from POST ...
0
votes
0answers
31 views

Help sending specific fields' values to external url from Drupal webform

I have the following codes in webform remote post module, but instead of sending the whole webform fields as it is being done in the module, I need to send data from the fields only present in a ...
1
vote
1answer
23 views

How to alter Services Views result

How can I alter services views result. Using services view I can easily produce Json data. I have tried function hook_views_post_execute. This hook is working for simple views but not with services ...
0
votes
1answer
14 views

Drupal services forbbiden error on put but not on post

I'm using Drupal Services Module to upload data to my site. It works good on local host, and I can do PUT and POST without problems. But after upload my site to a shared hosting, I can do POST, but ...
0
votes
0answers
92 views

How to build a user authentication workflow with AngularJS using RESTful module?

I'm building a single page app with AngularJS and Drupal as the backend. I'm using the RESTful module. However, I do not have much to go on to build a user authentication workflow. There are several ...
0
votes
1answer
24 views

How to programatically change file user owner

I'm using drupal services module. I can upload files through web services but the problem is all created files has the same owner, that is, the user of the web services. I would like to change this ...
1
vote
0answers
15 views

Create node via URL parameters to different drupal site

I am looking for a way to create a node via just a URL. I know the prepopulate module and similar can auto populate a form for a user to submit, but I would like to avoid the form altogether. After a ...
1
vote
0answers
37 views

Web speech reading full content

Am using WebSpeech Module to convert the text to speech. But when I click on the read content button it reads from the headings, primary tabs instead of main content alone. In Webspeech configuration ...
0
votes
1answer
162 views

drupal_http_request with basic authorization receives 401 response

I am trying to use drupal_http_request to connect to a remote rest-based webservice that users http basic authorization. The following curl command works every time from a command line, and I'm trying ...
1
vote
1answer
55 views

Create commerce product through web services

I want to create products using commerce services resource module. At this moment, I can create a product calling the resource .../product with POST, but It seems that It only creates a product ...
1
vote
1answer
196 views

Ways to sync outlook calendar with drupal?

I need to display the outlook calendar in the same calendar format in a drupal page. I need to add events to the calendar the in the drupal interface and sync it with outlook. What module ...
4
votes
1answer
54 views

How to get XML/JSON data for api.drupal.org?

In my earlier question How to get node IDs from drupal.org?, I can get the XML data of a node by going to https://www.drupal.org/api-d7/node/274365.xml where 274365 is the node id of a particular ...
1
vote
1answer
38 views

Should I make a SOAP or a REST service to receive files from a .Net WCF Service?

I need to implement a web service client in drupal 7 using the Web Service Client module, which receives files from a .Net WCF Service. Should I make a SOAP Service or REST service using WCF such ...
1
vote
1answer
28 views

How to access a contributed module Information from drupal.org

Is there any API to access Information about a contributed module from drupal.org site? How does Update Manager access information from drupal.org? By finding this I think I too could access other ...
0
votes
1answer
34 views

Response comes after 6 min while creating user using services module of Drupal 7?

I have a client side application developed in angularJS. As i am sending POST request to Drupal to create user, user is getting created without any delay if i check in Backend. But i get response ...
0
votes
1answer
71 views

Can't create/update resources with Services module

I can't create/update nodes, taxonomy, users, etc., with Drupal Services. I can log in, retrieve system connection info and log out. Also, I can retrieve a node, user (all details), taxonomy term, ...
1
vote
0answers
62 views

How to use API versioning with the Services module?

I'm using the Services module to produce a REST API. According to the official documentation, there is a way to version services resources. I believe version here means supplying a single API (e.g. ...
0
votes
1answer
52 views

Post image via webservices

I tried to create a node through external application using web services. This having only two fields node title and cck field image. i will grateful if anyone share the JSON format to post the ...
0
votes
0answers
22 views

Q how to enter API functions in wsclient rest server setting?

I need to add functions from an SDK API reference document to the Drupal7 webservices rest server. I'd like to query them through the wsclient rest server, attached to a feed, to input them as ...
0
votes
0answers
82 views

RESTful web services return 403 forbidden for uc_order_product

I'm using ubercart and RESTful web services module. When I query for node, uc_order, user, etc., it returns data correctly, but when I query for "uc_order_product" I always get 403 Forbidden. ...
1
vote
1answer
80 views

What is wrong in my XML structure to add nodes using a RESTFul web service POST?

I'm using RESTFul Web Services module with Drupal 7. I can log in with basic authentication, get CSRF-token, get nodes, and so on. The problem is with POST/PUT: I cannot get adding nodes to work. I ...
0
votes
1answer
39 views

Issue while adding arguments to the custom services

I am adding one argument to the custom service named "streamtype" as follows function CMODULE_services_resources() { $api = array( 'oidar' => array( 'operations' => array( ...
1
vote
0answers
74 views

Can't edit soap envelope

I'm trying to test SOAP webservices using the webservice client module but I can't edit the datatype parameter which is set by default to arg0. I've changed it to what is shown in the picture below ...
1
vote
0answers
74 views

Drupal Webservice api for fblogin and twitterlogin

I have to create an mobile app where user should login into drupal from their fb or twitter accounts. I have created an api to login into drupal but should I also need to paas the oauth token from ...
0
votes
0answers
60 views

Create comment with services 3.X on Android with json

Im developing one Android app. I'm trying to post a comment from the app to drupal via Services module, but i cant send a json data to the module, there is the java code: HttpClient httpclient = new ...
0
votes
0answers
58 views

View XML Request when using WSClient and Rules

I am building a website that uses 3rd party data from a web service. I decided to use WSClient...so far so good. I am using Rules together with WSClient to create the proper SOAP request, however I ...
1
vote
1answer
92 views

Synchronize data between 2 Drupal sites dynamically

I currently have two Drupal sites and I would like to synchronize in a specific way the data of each one. More precisely, the first one contains detailed informations and the other only has the main ...
0
votes
2answers
72 views

Instructions to install a ready-made site in localhost

I am trying to install a ready-made instructional site on my local Linux webserver. How should I proceed? Thank you J.Reynolds for answer. Please understand that after I posted question I did some ...
0
votes
1answer
72 views

How to retrieve specified fields using services?

Using services we can retrieve list of all nodes with different filters and we can get a specific node as well. But is there any way we can specify the fields we would like to retrieve ? Eg: ...
0
votes
0answers
34 views

Profile data not showing using REST server

When visiting user profile page /user/1 the page shows the custom profile data (bio, and a few other fields), but when accessing the same resource via rest (using web services), the data isn't ...
0
votes
0answers
13 views

Webform and WebService

I'm just trying to generate one Webform for the people enter their data and that will answer true or false. Depending on that answer I need to show some kind of message, but if thats true I need to ...
0
votes
1answer
25 views

Is there any way in drupal to get all primary links through views?

My objective is to get the primary links or any kind of menus items, to be shown as JSON, so that an app could consume it and show it. I tried it using views and I have services module and ...
0
votes
0answers
10 views

Openpublic and Webservice

I am working on a Drupal 7 website using the openpublic distribution. I just wanted to know which is the best way to send data to one webservice? 1) Should I use a "webform" connecting to a ...
0
votes
0answers
39 views

Drupal 7 services module - add inline item attributes

I'm creating a custom API resource called pages which hooks up to a custom content type. function curatorapi_services_resources() { $api = array( 'pages' => array( 'operations' => array( ...
2
votes
1answer
53 views

Web services for specific node

I know you can enable Web services for content in Drupal8. You also need to set permissions to make a GET request to content. But I was wondering if it's possible to set for each node if it can be ...
0
votes
1answer
60 views

Cache SOAP search results from external web service

I've inherited an older Drupal 6 site which calls an external SOAP web service which not only takes a while to query and display results (approx. 5 seconds) but also re-queries the web service when ...
-2
votes
1answer
248 views

Creating Custom Weather Module in Drupal 7 [closed]

I'm a beginner at Drupal 7 trying to create a custom module that gets the weather from weather.yahoo.com for my own personal use. I'm not trying to make anything fancy like the Weather module. I just ...
-1
votes
1answer
66 views

How can I achieve basic authentication in Drupal?

I am trying to get working webservices in drupal (Services, restws,...), but ,as a first step I am trying to get a cookie using 'Basic Authorization' using the following python script: import urllib2 ...