Hi all;
It is done!
http://www.fanafzar.com/xoopsnusoapmove to news module and you may see a block named: "web services" showing the system module "Who's Online" via a soap request. the Request and Response are presented as well.
new go to "Xoops WebService Manager" the XWS module index and take a look at the same process this time with the content on the news module.
Just to mention right now this system gets the service from itself but if we may have another host we can test it over the two XOOPS instances!
I have test it local getting the web service from this online xoops, and it worked, that's nice.
Here are the files to be downloaded:
http://www.fanafzar.com/xoopsnusoap/uploads/xoopsnusoappackage.zipwhat we need is: nusoap directory in the root;
overwright footer.php in the root to start giving web service to other systems.
Install the XWS module to get services from other XOOPS instances. the block is configurable via the admin section, but for the module index you may modify the XWS module index and set the proper URL at line 8 like this:
$s = new soapclient('URL/modules/news/?XoopsServiceInterface');
to get the service from a URL, yet only news module works.
it will use the "xws_news_index.html" and "xws_news_item.html" templates in the module to output the results, so you may change them.
this way we only get the data from another XOOPS and show it with our own templates, I think this is the way it should work.
I have started a new theme and logo for this and will start the project on dev.coops.org as well.
WARNING: please do not use this code on any production site, it is not ended.
WARNING: do not call web services from a URL that use other web services, this will cause some kind of recursion, making the server to fail!
Quote:
If i'm right, you know where to find my suggestion for such "service".
Hi Damaster; really glad to see you;
Yes
XOOPS Cube has this builtin ability, and anyone interested may take a look at:
"HelloWorld" program sample using XCube Core by Mr. nobunobu, which shows us many great things in the cube core,web service also is included.
One of main reasons I have started such a thing was the great work of the great people in
XOOPS Cube I have and will learn from such great people. to be honest I am not ready to do such things on cube, I am learning the great system
With Best Wishes to all opensource.
Farshid