This is a thing that i created using SabreAMF, i wanted to submit it is a module, but it was rejected, i think because of lack of documentation/purpose understanding, functionality duplication, too little code ... bla bla bla

I hope someone finds it useful and develops more from it.

Just follow the installation instructions + example inside the module

Cheers....

CommentFileSizeAuthor
sabreamf.zip66.98 KBiongion

Comments

iongion’s picture

Just navigate to gateway url from your browser http://localhost/drupal/services/sabreamf to be presented with a nice page for non-amf requests :D (the rubyamf way :D)

There is also a ping test service and a flash console application (as3) + a DrupalGateway actionscript class wrapper (you can have as many gateways as you want, mapping to different drupal services)

var gw:DrupalService = new DrupalService(
	'http://localhost/drupal/services/sabreamf',
	'sabreamf'
);

function sabreamf_pingme_Result(re:Object) {
	trace('sabreamf_pingme_Result result ' + re);
}

function sabreamf_pingme_Fault(fe:Object) {
	trace('sabreamf_pingme_Fault fault ' + fe);
}

// hooks are called without the module prefix
// they are dynamic methods of DrupalService class, which acts as a proxy, no need to wrap them

gw.pingme([21, 24], sabreamf_pingme_Result, sabreamf_pingme_Fault);

snelson’s picture

Category: task » feature
Priority: Normal » Minor
Status: Active » Closed (won't fix)

This looks cool ...

I'd suggest you clean it up and try again to submit it as a contrib module. But, take a look at Drupal coding standards first, I think this has a lot to do with rejection, looking at your code.

http://drupal.org/coding-standards

Nice work,
Scott

iongion’s picture

Thank you Scott, you have all my credit for your so very useful module, a few days i was granted commit rights at http://code.google.com/p/sabreamf/ and i added the module there, you can delete this task if you want.

snelson’s picture

Cool ...

I still think it would be good to have in the Drupal contrib repo ...

I've also been thinking about doing a general amfserver module, which might include all the different libraries like AMFPHP and SabreAMF. I dunno though, seems like it would all be accomplishing the same goal.

I've never used sabre, what are its differences from AMFPHP or others like WebORB, etc?