Starter Services questions D7

Events happening in the community are now at Drupal community events on www.drupal.org.
MacRonin's picture

Hello,

I haven't really worked with services before but I do have the 20k foot view of what I want to do. So before I started I just wanted to verify a few things.

I am looking to create a new site in Drupal 7 and planning on using Services 3.x Before I started coding I wanted to do a bit of experimentation and make sure that I am using a compatible collection of the various required modules. I thought I had seem an install profile or distribution which was meant o be a base starting point for a Services based site (and had specific releases of the various modules tested to be compatible) but I can't seem to find it. Does anyone know the URL?

My site was going to use Services to communicate with two different types of data sources.

  • First is going to be a Flash application that is running within the site itself (on a local page). In the pat I believe the normal method of communications involved going thru AMFPHP. Is this still true? If it is, what is the best source of AMFPHP to include? But from looking at more recent versions of Flash it seems that JSON could also be used. Has anyone tried this combo?

    Also since the Flash object would be on the site itself, I wanted to verify that I do not have to login again and that the Flash object can inherit the current user's session/access authority.

  • The second communication will be the more standard remote site. In this case I assume the site has to gain its own access authority since it is not part of an existing session.

In both cases I want to collect data and return a result that internally will be stored in Entities. I am not looking to just create/retrieve nodes.

Just looking for any hints/tips/stumbling blocks as I get started. Any information appreciated.

Thanks

Comments

Hi MacRonin, Services 3

rachit_gupta's picture

Hi MacRonin,

Services 3 module for Drupal 7 does not support AMPPHP, But as long as you are using JSON or XML format Services 3 should work seamlessly, It further provides ReSTful APIs.Here are the answers to your query.

1

First is going to be a Flash application that is running within the site itself (on a local page). In the pat I believe the normal method of communications involved going thru AMFPHP. Is this still true? If it is, what is the best source of AMFPHP to include? But from looking at more recent versions of Flash it seems that JSON could also be used. Has anyone tried this combo?

I am not a flash guy, but why would you need web-service for local flash application.

2

Also since the Flash object would be on the site itself, I wanted to verify that I do not have to login again and that the Flash object can inherit the current user's session/access authority.

I believe so.

3

In both cases I want to collect data and return a result that internally will be stored in Entities. I am not looking to just create/retrieve nodes.

You can write a custom module which uses services hooks to achieve this.

~
Rachit Gupta

Cheers,

Rachit Gupta
Founder DrupalMumbai, DrupalCAP.org
rachit.gupta@drupalmumbai.org

Thanks for the feedback

MacRonin's picture

Thanks for the feedback @rachit_gupta

I had thought that Services v3 didn't have support for AMFPHP yet which was why I was glad to see that Flash seem to have added support for using JSON

1 - One of the reasons I was looking at using web-services for the communications between the Flash App and the website, was for consistency, plus plans to also create a native App version of the Flash App for use on IOS and Android cell phones. By using a web-services API I could use the same method of communications for both versions.

2 - Thanks

3 - I thought so, but I'm glad to have it confirmed.

Now if I can just find that starter Services distribution I'l be set. Since there are a few modules interacting here, having a starting point where I know the problems I run into are problems are mostly my own code and not the underlying modules makes it easier to debug.

Starter Service distribution

rachit_gupta's picture

Hi MacRonin,

Now if I can just find that starter Services distribution I'l be set. Since there are a few modules interacting here, having a starting point where I know the problems I run into are problems are mostly my own code and not the underlying modules makes it easier to debug.

There is no Drupal service distribution AFAIK , but its easy to configure a one, All you need to do is install Service 3 and dependent module, and follow this nice documentation http://drupal.org/node/1246470

Cheers,

Rachit Gupta
Founder DrupalMumbai, DrupalCAP.org
rachit.gupta@drupalmumbai.org

Thanks for the link. Guess

MacRonin's picture

Thanks for the link. Guess I'll just give it a shot and see if the diff(most current) releases are compatible at this time. It may not be true anymore but the reason given for The distribution I mentioned wasn't so much doing the module installs, but making sure you had specific versions for them so they would play well together.

Well looks like time to dig in.

Have a happy coding :)

rachit_gupta's picture

Have a happy coding :)

Cheers,

Rachit Gupta
Founder DrupalMumbai, DrupalCAP.org
rachit.gupta@drupalmumbai.org

Services

Group organizers

Group categories

Group notifications

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