Services

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.

Mark_L6n's picture

Obtaining XML file from remote resource with Drupal 7

Hello, I am using Drupal 7, am new to Services and would like to ask if Services is the right tool for the task below, and if so where to get documentation related to the task.

I need to simply obtain an XML file from another resource. This involves sending an XML file to it, receiving an XML file back with a code embedded, extracting that code and using it in another another XML request, and then receiving the desired XML file.

Specifically, here is what I need to do: 1) Send XML in this format to [URL]submit.rest :

<?xml version="1.0" encoding="UTF-8" ?>

Read more
P.Smith's picture

Problems posting a node to services using PHP REST

I am able to establish a login to services and a session name and session id is returned. However, when I try to post a new node a 401 error code is returned. I assumed that I just needed to send the cookie in the header?

The curl code I am using is:

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($curl, CURLOPT_POST, TRUE);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: application/xml", "Cookie: " . $session_cookie));

Read more
bigbman's picture

iPhone User Registration with Services Module - Best Practices

Wondering if anyone is willing to share best practices in exposing user registration via the Services module. This would be used with an iOS application.

Thanks!

B

Read more
happylrac's picture

Quick question ... testing the REST web services

I have a quick question. I have the Services REST server up with all the resources, and know that it is working. What I would like to do is use an app like Fetcher for the Mac or Poster for Firefox to attempt to login as a user. I am using GET and expect that the url will be something like

"http: //localhost:8080/endpoint/user/login?username=my_username&password=my_password"

but that doesn't seem to work. The REST server is returning "406 Not Acceptable: There is no user with ID 0". Can someone please set me straight here?

Read more
rylowry@gmail.com's picture

Accessing the enitre path in an argument

My question pertains to Services 7.x-3.0-rc3

When creating a webservice you can easily map parts of the path to arguments like so:

<?php
       
'args' => array(
          array(
           
'name' => 'name',
           
'type' => 'string',
           
'source' => array('path' => 0),
           
'optional' => FALSE,
          ),
?>

That's great if you only want the first part of the path, but what if I wanted the entire path. For example, say I have a url that looks like this:

http://www.example.com/endpoint/resource/some/long/path

Read more
RandyT's picture

Tapatalk developer | Bonsai for Android

Employment type: 
Contract
Telecommute: 
Allowed

Looking for someone to do the work to complete the Tapatalk module. http://drupal.org/project/tapatalk

I've tried to entice the original author to contract to complete the work but he has a lot on his plate. Would like to find someone that could take this on and complete it.

If interested, PM me and provide me with your estimate of time and cost to complete the module.

--
Randy

Read more
dru_paul's picture

need clarification on the comment_service module

(referring to this post, which is the conclusion of a thread and patch created by heyrocker)
http://drupal.org/comment/reply/182069/1395176

I traced my problem to an error in the final Drupal 5 patch.
It has a trailing comma after the last array which causes the patch routine to choke and not spit out the module itself. So, after correcting that, and following up with all the other requisites, I can now post comments remotely.

yay

!

Read more
wiliam_steven's picture

Integrating Drupal with Handheld Motorola FR68

Hi guys,

I have interesting thing with services modules and very great, but i want to asking about integrating handheld motorola FR68 (using mostly in Warehousing things) to update status of project.

Can services integrated into drupal, actually i want to make Warehouse Management System with drupal, can you help me with this thing ?

Thank you.

Read more
agmin's picture

Release Schedule

Is there any general roadmap or release schedule for Services 3? Specifically for Drupal 6, but also Drupal 7. Are we talking weeks, months, or a year before a production release?

Read more
mottolini's picture

Problems using db_query in a custom service

It's quite weird, but maybe someone has already encountered the same problem.
The code, a service callback, is quite simple:

function myservice_service_search_products($query) {
  $sql = "SELECT * FROM mv_products WHERE description LIKE '%". mysql_real_escape_string($query) ."%'";
  $result = db_query($sql);

  $products= array();
  while ($product = db_fetch_object($result)) {
    $products[] = $product;
  }
  return $products;
}
Read more
Mediacurrent's picture

Drupal Designer/Theming Specialist | Mediacurrent

Employment type: 
Full time
Telecommute: 
Allowed

Come and help Mediacurrent by working on some of the biggest, most cutting-edge Drupal projects around! We are a stable, growing metro-Atlanta based Drupal consultancy with an award-winning track record.

Our culture is comfortable, flexible, and dynamic. We are a mostly virtual company based throughout the Southeast USA. We strongly believe in open-source principles and contributing back to the Drupal community. Your experience at Mediacurrent will challenge and stretch your mind on a daily basis.

Here is what we are looking for:

* An extensive understanding of the Drupal CMS
Read more
sumachaa's picture

XML error parsing SOAP payload

Hi

I wanted to create a soap server for my project and I am planning to user the services module along with soap_server.
But when testing these Im getting an error message which says

"XML error parsing SOAP payload on line 1: Space required"

These are the modules I have installed

Drupal 6.17
Services - 6.x-2.4
soap_server - 6.x-1.2-beta1 with the patch from http://drupal.org/files/issues/751326.patch

Followed the steps mentioned in the link http://drupal.org/node/1101362

Read more
avinoama2's picture

Problem getting a module to work with services

Hi in the last 4 days I am trying to do a simple "Hallo world" module with services.
I'm using Drupal 7 with Services 3.X Working with REST Server.
I read the API doc's.
I created an endpoint on my site.
Iv'e manage to use the default node and user module's in my Services module endpoint.
The services module recognized my module and methods all, index, retrieve etc...
And when i try to view data i get white page with no content.
And I can't get any good Example of a module that works with Services 3.x.

Any idea on how to do it ??
Or a link to a nice article ???

Read more
chinaKat's picture

Experienced Drupal 7 developer for short project | BPI

Employment type: 
Contract
Telecommute: 
Allowed

Looking for an experienced Drupal 7 developer for a short project.

We want somebody to build the Drupal backend and admin for a Flash application. (We’ll write the Flash, we need you to build us something that will play happily with Flash.) We know enough about Drupal to cobble something together on our own... eventually... but we’re looking for a Drupal rockstar to help us quickly build an elegant installation that we can deploy again and again.

Read more
perikut's picture

what i'm missing without Oauth in Drupal 7?

hi,

I'm in the typical moment in which I have to decide to start a new project using Drupal 7 or Drupal 6.

I'm mostly interested to use Services; I installed Services version 7.x-3.0-rc3 and see that Oauth authentication requires module Oauth, but, as far as I see, there is no version for Drupal 7 (http://drupal.org/project/oauth)

I understand that Oauth is for user authentification, but I'm not sure what exactly I'm missing if I really cannot install it in Drupal 7 (i'm afraid i cannot user Facebook and twitter login)

thanks in advance,
Pere

Read more
gcrouse's picture

Can Services be used to serve user account management across multiple drupal sites

We will have a wide variety of single-install Drupal sites, hosted under different domains, and possibly under different hosting locations.

Read more
sisko's picture

Services - Rest Server Setup

Hi guys,

I have the Services 6.x-2.4 module installed on a Drupal 6 site.
I am attempting to use REST but I am having difficulties getting things working.

For instance, http://mysite.com/services/xmlrpc returns some kind of feedback that the server is working.
While http://mysite.com/services/rest returns nothing and I am not sure if the server is actually working.

Can anyone offer some direction, please?

Read more
lhridley's picture

Drupal 7, XML-RPC and Sessions

I'm in the process of developing a Drupal site that will make heavy use of XML-RPC for smartphone clients. I would like to develop this site in Drupal 7, but had already started in Drupal 6. My question specifically relates to using sessions with XML-RPC requests.

How do you indicate in Drupal 7 that an XML-RPC method requires a valid session -- this is pretty straightforward in Drupal 6 with the Services module installed once you find the right documentation.

If there's documentation on this, please point me in the right direction, as I haven't found it yet for Drupal 7.

Thanks!

Read more
dajuice's picture

Retreiving all nodes of one type using services to flex/flashbuilder

I am in the process of developing an admin tool for a D6 site in FlashBuilder using AMFPHP and services v2. Currently im using the views service to create a view to get all the data from a list of nodes to download to my admin tool to work with it and then using the node.save to update drupal.

However as of services 3 and D7 the views service no longer exists so im wondering how to futureproof the tool so that i dont have to do a full rewrite for D7 / Services 3.

Read more
perikut's picture

simple Services parameter question

hi,
I'm newbie to Drupal and I need it specifically for feeding iPhone apps with JSON data.
I know how to access dbase data via a module using node_load and how to generate the JSON.

Now I simply want to pass a parameter in the URL, in order to get only the info that I want (ex: http://...mymodule?param=X)

I'm completely lost about how to do it. I have checked various drupal resources without getting anything clear. In most cases the info is not referering to Services.

Can someone please point out some ideas, resources, documents....
thanks in advance,

Pere

Read more
Subscribe with RSS Syndicate content