|
Logging in is required for posting.
| |
Special forum features: inserting music notation, posting audio recordings.
Total Posts: 3 - Pages (1):
[1]
Author: chrisa
Posted: Dec 02 2019 - 06:20 PM
Subject: re: SOAP / WSDL
Hi Rainer,
Thanks for your very quick reply. Here's the script:
$client = new SoapClient("musipedia.wsdl");
var_dump($client->__getFunctions());
var_dump($client->__getTypes());
$params = array(
"username" => "<USER>",
"q123hash" => md5("<PASSWD>"),
"q1collection" => "",
"q2query" => "3.2,3.4,3.6,4,5,6",
"q3keywords" => "",
"q4pitch" => "",
"q5rhythm" => "",
"q6items" => "10",
"q7offset" => "",
"q8categories" => "");
print_r($params);
$response = $client->__soapCall("search", $params);
// Print WS response
print_r($response);
Author: rt
Posted: Nov 30 2019 - 05:01 PM
Subject: re: SOAP / WSDL
you might be doing something wrong - maybe you can post your client code (minus username/password)?
The site is using the SOAP interface itself, so anything that works on the website should also work via SOAP.
The website uses a PHP SOAP client.
Best,
Rainer
Author: chrisa
Posted: Nov 30 2019 - 12:41 AM
Subject: SOAP / WSDL
Hi,
Thanks for your site - it's very interesting!
I'm trying to connect using SOAP. It accepts my credentials. Giving all the other parameters as empty strings, I get the following response:
(
[message] => No matching items found.
[items] => Array
(
)
[requests] => 0
)
That's fine and appears to be working. If I add a string to any of the queries (e.g. "q2query" = "3.2,3.4,3.6,4,5,6"), it appears to append this onto the end of the password! This is the response I get:
(
[message] => User <USER>, password <PASS>: invalid username-password combination or invalid hash for 'YOUR_PASSWORD3.2,3.4,3.6,4,5,6'
[items] => Array
(
)
[requests] => 0
)
Am I doing something wrong?
Thanks
Chris
Total Posts: 3 - Pages (1):
[1]
You must login to post a message to this conference.
How to insert music:
Add a bit of sheet music, along with a MIDI file, simply by entering note names in Lilypond syntax between the [L] and [/L] tags.
For example, you can try what happens if you enter: [l]g'4 g'4 d''4 d''4 e''4 e''4 d''2[/l] (use the Preview function if you don't actually want to post this).
You can create these lists of note names by clicking on piano keys here.
How to post an audio recording:
If you just want to sing, whistle, or play a melody so that other forum visitors can hear it, follow these steps:
- Record your audio here.
- You should notice a 32-character hash code, something like: 2a40281c5001c5a7d8c9f57fcdeccfaf
- copy this hash code and paste it into a forum post, enclosed in the audio tags, for example: [audio]2a40281c5001c5a7d8c9f57fcdeccfaf[/audio]
How to mark a thread as solved:
If the original question in a thread is solved, please mark it as solved using the "solved" icon (or by just typing [solved] into your post). This makes life easier for people who are willing to identify melodies, since unsolved problems are easier to spot that way. If a problem turns out to not be solved after all, just write [/solved] in a new post, and the thread will be labeled accordingly.