View previous topic ::
View next topic
|
Author |
Message |
Muriel
Admiral (Administrator)
Joined: Feb 08, 2006
Member#: 1459
Posts: 7
|
Posted:
Tue Jul 08, 2008 2:14 pm Post subject: New feature: Developer API |
|
Some of you have done a great job developing gadgets and widgets and whatnot. I've recently developed a new feature for all the websites in the 24seven.fm network that should make your development a lot easier.
You will no longer need to parse the websites to get the queue, history and what's playing. I've put a webservice on all the sites that give you all the information you need in one go.
Those of you who are not software developers or have no idea what this is all about need not worry. This is technical stuff
The webservice definition can be found here:
http://death.fm/soap/FM24seven.wsdl
The webservice can be found on all the sites using /soap/FM24seven.wsdl
Methods provided:
GetCurrentlyPlaying(boolean GetCover)
This method returns an object with all the information about the currently playing track. It's the same information that can be found in playing.php. If you call the method with the GetCover parameter set to "true" the webservice will return the binary data for the currently playing song. "false" puts NULL in the binary data, but you still have the URL to the cover in the message.
GetQueue(int NoOfEntries, boolean GetCover)
GetHistory(int NoOfEntries, boolean GetCover)
Here you will get an array of an object that contains information about the songs in the queue or history. The information in the object is the same as can be found on the Queue/Played page.
The NoOfEntries parameter lets you control how many entries is returned. The maximum number of entries returned is 20.
The GetCover parameter behaves in the same way as for GetCurrentlyPlaying().
We would appreciate if you would limit your requests to the webservice. Use it only when a song has changed. The GetCurrentlyPlaying() includes the length of the currently playing track (in milliseconds), when the track started playing (dateTime) and what the time was on the server when you invoked the webservice. That should make it easy enough to calculate a countdown timer so that you know when the track has finished playing. |
|
|
diginferno
Rear Admiral (Ambassador)
Joined: Apr 11, 2006
Member#: 1771
Posts: 3182
|
Posted:
Tue Jul 08, 2008 2:33 pm Post subject: |
|
Sounds yummy! Thanks for putting it up and letting us know! _________________ diginferno
.:: ::. |
|
|
cjjeepercreeper
Commodore
Joined: Nov 27, 2006
Member#: 2665
Posts: 6146
Location: At the Mountains of Madness
|
Posted:
Tue Jul 08, 2008 2:50 pm Post subject: |
|
diginferno wrote: |
Sounds yummy! Thanks for putting it up and letting us know! |
CHOMP, CHOMP, CHOMP. Nope, tasteless. Of course I know nothing about software development.
Carry on geeks. _________________ Not dead, just sleeping.
Memento Mori |
|
|
DOSphantom
Commander
Joined: Aug 27, 2007
Member#: 3904
Posts: 787
|
Posted:
Tue Jul 08, 2008 5:27 pm Post subject: |
|
I only deal with basic, c(and minimal c++ stream crap), and html/css....
What does a boolean do? An input with multiple possible listings? _________________ I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum. |
|
|
Muriel
Admiral (Administrator)
Joined: Feb 08, 2006
Member#: 1459
Posts: 7
|
Posted:
Wed Jul 09, 2008 5:31 am Post subject: |
|
A boolean can be either true or false.
So for GetCurrentlyPlaying you are either getting the album cover in binary form (true) or you are not (false). _________________ "Anything one man can imagine,
other men can make real."
- Jules Verne |
|
|
Pesadelo
Admiral (Administrator)
Joined: Feb 18, 2007
Member#: 3090
Posts: 1955
Location: Rio de Janeiro, Brazil
|
Posted:
Wed Jul 09, 2008 6:55 pm Post subject: |
|
\m/ congratz Chand \m/
this is really cool! |
|
|
duh666
Cadet 1
Joined: Jul 08, 2008
Member#: 5481
Posts: 4
|
Posted:
Mon Jul 14, 2008 11:41 am Post subject: |
|
Salute...
I was wondering if someone has already develop some "addon" or "gagdet" or "plugin"(whatever) for the linux mp3 player, Rhythmbox (for Gnome) ?
There is anybody else here who uses linux ? Anybody ?
Regards... |
|
|
duh666
Cadet 1
Joined: Jul 08, 2008
Member#: 5481
Posts: 4
|
Posted:
Wed Aug 19, 2009 11:34 am Post subject: |
|
Salutes again...
..a few months later... lol
I was trying to access the wsdl uri:
http://24seven.fm/FM24seven.wsdl
... but i got 404 error ...
The Service still running ?
regards. |
|
|
diginferno
Rear Admiral (Ambassador)
Joined: Apr 11, 2006
Member#: 1771
Posts: 3182
|
Posted:
Wed Aug 19, 2009 1:05 pm Post subject: |
|
duh666 wrote: |
Salutes again...
..a few months later... lol
I was trying to access the wsdl uri:
http://24seven.fm/FM24seven.wsdl
... but i got 404 error ...
The Service still running ?
regards. |
How did you get there? There is a different URL posted in the announcement: http://death.fm/soap/FM24seven.wsdl
Try this one and let us know if it works _________________ diginferno
.:: ::. |
|
|
duh666
Cadet 1
Joined: Jul 08, 2008
Member#: 5481
Posts: 4
|
Posted:
Mon Aug 24, 2009 5:54 pm Post subject: |
|
Hail...
Actually I was trying to "import" the wsdl with the java tool "wsimport" and I got a weird error... than I looked into the wdsl and I found this uri in this same file I've downloaded... (line 10 and 11...)
I just tried to download the .xsd schema and I got a big 404 error !
Any ideas ?
Regards. |
|
|
diginferno
Rear Admiral (Ambassador)
Joined: Apr 11, 2006
Member#: 1771
Posts: 3182
|
Posted:
Mon Aug 24, 2009 6:35 pm Post subject: |
|
According to the W3C WSDL Primer:
Quote: |
The value of the WSDL target namespace MUST be an absolute URI. Furthermore, it SHOULD be dereferenceable to a WSDL document that describes the Web service that the WSDL target namespace is used to describe. For example, the GreatH owners SHOULD make the WSDL document available from this URI. (And if a WSDL description is split into multiple documents, then the WSDL target namespace should resolve to a master document that includes all the WSDL documents needed for that service description.) However, there is no absolute requirement for this URI to be dereferenceable; thus a WSDL processor must not depend on it being dereferenceable.
|
More in Chapter 6: "WSDL Essentials" of "Web Services Essentials" from O'Reilly:
Quote: |
The definitions element also specifies a targetNamespace attribute. The targetNamespace is a convention of XML Schema that enables the WSDL document to refer to itself. In Example 6-1, we specified a targetNamespace of h**p://www.ecerami.com/wsdl/HelloService.wsdl. Note, however, that the namespace specification does not require that the document actually exist at this location; the important point is that you specify a value that is unique, different from all other namespaces that are defined.
|
The target namespace is just an identifier, the only important thing is that these namespaces are unique. So it seems that the tool you are using may have some issues. Sorry, I don't know anything about it. _________________ diginferno
.:: ::. |
|
|
duh666
Cadet 1
Joined: Jul 08, 2008
Member#: 5481
Posts: 4
|
Posted:
Fri Aug 28, 2009 12:33 pm Post subject: |
|
Hail there..
For using the "wsimport" tool, I needed to change the .wsdl file, adding the line:
Code: |
<xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
|
... then I got the warning:
Code: |
[WARNING] rpc/encoded wsdls are not supported in JAXWS 2.0. |
...it seems like I will change to JAX-RPC ... f*ck... an old java tool...
Anybody here already did any desktop app. with this service ?
If not... i must continue this battle...
see you... in hell...
ps: tkz for helping dude !
(editing)
ps2: typo... bad typo... sorry !
Last edited by duh666 on Fri Aug 28, 2009 3:16 pm; edited 1 time in total |
|
|
Dami
Commodore
Joined: Feb 04, 2005
Member#: 87
Posts: 2567
Location: Stalag 13
|
Posted:
Fri Aug 28, 2009 1:04 pm Post subject: |
|
Has Digi just been called Dude? _________________ o
L_
OL
This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat. |
|
|
DOSphantom
Commander
Joined: Aug 27, 2007
Member#: 3904
Posts: 787
|
Posted:
Fri Aug 28, 2009 2:50 pm Post subject: |
|
Dami wrote: |
Has Digi just been called Dude? |
I think she has, dudette.
_________________ I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum. |
|
|
Pesadelo
Admiral (Administrator)
Joined: Feb 18, 2007
Member#: 3090
Posts: 1955
Location: Rio de Janeiro, Brazil
|
|
|
|