|
|
| Service Owner: |
flash-db |
| Service Home: |
http://www.flash-db.com/services/ |
| Service WSDL URL: |
http://www.flash-db.com/services/ws/newsReader.wsdl
Inspect WSDL View WSDL |
| Short Description: |
Returns all top level categories and there sub-categories from Moreover news, then allows you to search within that category. |
| Implementation: |
nusoap |
|
| reasonable |
free |
none |
instant |
no |
|
|
Returns all top level categories and there sub-categories from Moreover news, then allows you to search within that category.
To use: First call the getNewsCategories method, this will return an array of all current moreover news categories. Each of these categories has sub-categories associated with them. Use the getNewsSubCategories to return an array of all sub categories for that category.
You will then need to use the getNews method to search within that category. If you do not specify a query parameter for this method, it will return all results in that category. - If you already know the category you want to search, you do not need to use the first two methods. |
|
|
|
#include "NetServices.as"
#include "NetDebug.as"
// create result handler for results and error messages.
serviceResult = new Object();
serviceResult.onResult = function(result){
trace(result)
}
serviceResult.onStatus = function(status){
trace(status);
}
// sets up the gateway connection.
var serverConn = NetServices.createGatewayConnection("<PathToGateway>gateway.php");
// sets up the service.
var service = serverConn.getService("http://www.flash-db.com/services/ws/newsReader.wsdl", serviceResult);
// Set the params and call the service
// In this example we are calling the getNews Method.
// You can pass in both a Category and a Query (search term) or just one of them.
// If You pass in a category and not a query term - it will load all news in that category.
// If you pass in a query (search term) it will search that category for results.
// Use the two other methods associated with this service to get categories and sub-categories.
params = {
username:'any',
password:'any',
category:'Developer%20news',
query:'',
numberResults:5
}
// calls the getNews method from the flash-db news reader service.
service.getNews(params);
|
|
|