Services

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.

This is a discussion and working group for anyone interested in the Services module and related modules. This module was created out of a need for a standardized solution of integrating external applications with Drupal, specifically Flash and Flex applications. Visit the issues page for all bug reports. Also visit the Services Handbook for information and examples.

aurafeel's picture

web service chronopost

Hi, I am currently finishing my website on Drupal 6.22 and I have to implement one last feature related to chronopost and the checkout process. I have been given this information in the following link and am not quite sure what to do with it:

https://83.240.239.170:7554/ChronoWSB2CPointsv3/GetB2CPoints_v3Service?wsdl

Read more
aurafeel's picture

web service chronopost

1
0% (0 votes)
2
100% (1 vote)
Total votes: 1
avinoama2's picture

Using date fields to ajax PUT call

i'm posting it here because i don't know if it is a bug or just me not doing something correct.
so please be gentle ill except any suggestion.

Created an end point for nodes for GET and update

With simple ajax call i am able to get node data according to its node id.
When i put my node back my CCK Date fields seems to be erased....
But i am able to change all other fields ( title, body, etc...)

how do you send your Date Field correct and way is it not in the same format that i get it from the endpoint ?

I'm using drupal 7 and services 3 using json

Read more
martinbedouret's picture

Attach an image when node is created using AMFServer

Hi all,
I'm using drupal 7 and AMFServer (in services 3.0) to create node content from a Flash Client.
I'm able both to upload files and create nodes separately without problems, doing two different service calls (one to "file" service and another to the "node" service).
But I'm not being able to create a node with the a "File" field and attaching the file in the "node create" service call.
Is it possible to do that? I need to have the file "attached" to the node, instead of a node and a file in a separate way.
Thanks,
Martin

Read more
tassaf's picture

Using Services Module with SAP integeration

Hello everybody,

I want to know if I can use services module to get data from SAP system

I am developing sync module that sync employees data from SAP system through SAP RFCs

Is it possible or not?

Read more
Anonymous's picture

User log in rules only from Services

Hi, i'm trying to execute an action related to user login only if the user log in from api provided by Services module. Is there a way to do that? I checked the $account variable and token but there is no information about that.

Thanks,
Igor

Read more
ajlow's picture

hook_services_services create - what would the arg be for image data

I've created a REST server user Services 7.x-3.1.

I want to be able to accept an image. My question, how should I set up my create service?

Currently I have this for my hook_services_resources:

  'create' => array(
    'help' => 'Creates an issue',
    'file' => array('file' => 'inc', 'module' => 'issue'),
    'callback' => '_issue_create',
    'access arguments' => array('issue service create'),
    'access arguments append' => FALSE,
    'args' => array(
      array(
        'name' => 'data',
        'type' => 'struct',
Read more
leoburd's picture

Hands-on VoIP Drupal session today at Drupal Con Denver

Thanks to everyone who attended the first VoIP Drupal session yesterday (3/20) at Drupal Con Denver!

If you are attending the event, I'd highly encourage you to join us for today's hands-on session at 2:15pm in room 212 (http://denver2012.drupal.org/bof/voip-drupal-hands-session)

As part of that session, we will have opportunity to answer specific questions and go deeper into different aspects of VoIP Drupal, including the main modules of the platform (click2call, phone recorder, voipnode, etc.) and the VoIP Script API.

If you have any comments or questions, please send me an email and let's try to find some time to talk while we're all in Denver. I'll be here until Thursday afternoon and will be very happy to learn more about your ideas!

Best,

Leo

Read more
halufa's picture

How to get Localized content?

I'm using Drupal 7.12 with Services 7.x-3.1 and able to fetch content. But now i've a problem, and can't find solution or information for it anywhere: Does Services support localization?

Calling the following URL: http://localhost:7777/?q=en/rr/taxonomy_term/5.json

The answer given is:
{"tid":"5","vid":"1","name":"Services","description":"","format":"plain_text","weight":"0","language":"und","i18n_tsid":"0","vocabulary_machine_name":"connect"}

It ignores the prefix "en" and says language="und".

For index node retrieval have the same problem fetching the nodes for all languages.

Read more
flowsolid's picture

Return full nodes with all the cck fields ?

The service 3.x module with the REST Server for drupal 7 works great!

Is there a way to get all node fields (custom cck fields) within the index. http://localhost:8888/drupal-app/EndPoint/node

At the moment I got the following fields: bid,vid,type,title,kid,status,created,changed,comment,promote,sticky,tnid,uri , but I need all the node fields. Any idea how to do this without writing an own resource module for services 3.x ?

Read more
memoday's picture

Views and WordReference API, can this work?

I am wondering if the Service module can work with Wordreference API @

http://www.wordreference.com/docs/api.aspx

It is a JSON server. Do you think I can retrieve data from Wordreference in my Views search using the Servicde module? Any tutorials on how to do this? What I am trying to achieve is that when you search in my Views search for a term for example, it will get the English>German translation from Wordreference displayed as well? Any ideas?

Read more
gmak's picture

Relation + Services

Has anyone tried working with the Relation module (http://drupal.org/project/relation) and Services?

Relation looks like it could be a very good module for doing much more with related entities. I'm wondering about how to do CRUD (probably via REST/JSON) with Relation.

Any ideas?

Read more
ridicter's picture

Class Project: best course of action and resources to quickly learn web services and choose appropriate protocol to interact with Android app

Hi all,

I am currently a CS student, and I'm currently developing an Android application for a mobile development class that will interact with a Drupal-based website. Briefly: the website and application will be based on the StackOverflow model, but for organic/sustainable gardening/farming. Questions/answers will be posted either online or via the Android app, and Android version will need to sync with user account and question/answer data from server. (I can PM more details, if interested.) I hope to eventually implement a badge system and the like.

I have been a happy Drupal user/"developer" for about 1.5 years now (developer in quotes), having developed custom themes, learned Drush, played with views, etc. I'm hoping to up my game in both mobile dev and Drupal dev with this project.

The problem is that I have zero experience with web services, and though I'm making progress slugging through wiki articles/random resources, it's still a difficult trek. The good news is that I have spring break to learn a bunch next week.

I was hoping for direction in:
a) good resources/advice for learning
b) recommendations on which protocol to use based on my specs
c) all other advice. Is this project too much?

Read more
ada05's picture

Services, XMLRPC and Java

Im looking for help on how to add taxonomies and files to nodes using Java and XMLRPC:

  • add taxonomy terms to a node (using term reference fields)
    this is what i got: {field_area={und={0={tid=38}}}...} and its not adding the term to the created node

  • add files to a node

  • edit/update existing nodes

i cant get anything to work and there's little documentation about how to use the API (which parameters requested etc)

anyone help?

Read more
Anonymous's picture

Create node only via REST Services disabling creation via web

Hi,

I'm developing an iPhone app to populate Drupal nodes using client side DIOS libraries.
The server side is a Drupal 6 with Services 3.1 and REST server 3.1 modules.
I'm able to create nodes via iPhone interface after authentication but I want to restrict node creation only via iPhone app, denying users to create nodes directly from /node/add page.

Is there any way to do that?

Thanks,
Igor

Read more
Anonymous's picture

REST Server api to Add/Edit Entity translations

Is it possible to add/modify the translation fields from the REST api? So far I can only seem to update the source text.
The ultimate goal is to be able to provide the translations through the api. Has anyone tried this?

Read more
moltra's picture

how to use TID as parameter for restful api

I am working on a site where there is multiple taxonomy terms on each node. I want to be able to use restful api and pull up every node that is related to a taxonomy term. The taxonomy term is saved with the node, but it is only saving the tid, I see that the tid is the link between the nodes, but everytime I try and use the parameter [tid] as a search I get the following. I can get the

Fatal error: Call to undefined method PDOException::message() in /home/content/20/8959120/html/sites/all/modules/services/services.module on line 555

Read more
pathscale's picture

Getting simple register new user to work

I've installed services and created a service with these details

name register, server xmlrpc, endpoint user.register, resources user create and user register

I'm posting using curl
url -X POST -d @xmlpost.txt --header "Content-Type:text/xml" http://foo.com/user.register
--------

<?xml version="1.0"?>

user.register

name
username

mail

Read more
-enzo-'s picture

Issues trying to call a method in XMLRPC

Hello Folks

I'm trying to code a new service in Drupal 7 using the following code.

Read more
gmak's picture

Getting Started - Help!

Hi,

I've just started using Services 3 for a project where (eventually) we will be accessing Drupal via webservices. I have the modules installed and everything seems to be working in my tests.

However, as I try to start to try to create nodes, I am running into problems.

I have setup a REST server, with node as one of the resources available. I can create a node, which is stored in the database, but it is only creating the title. It appears that my formatting of the JSON query is not correct, but I can find little to suggest where my problem might lie.

Read more
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week