1
farshid
xoopsnusoap
  • 2007/7/8 16:04

  • farshid

  • Just popping in

  • Posts: 34

  • Since: 2004/11/9


I am really excited, right now my test on a new thing was successful:
Making a XOOPS instance get block and/or module data from another XOOPS instance via soap.
It uses nusoap 0.7.2 (Dietrich Ayala - http://dietrich.ganx4.com/nusoap) as its main engine
It is a hack in XOOPS_ROOT_PATH/footer.php (which should be replaced) and a module called: "XWS" (XOOPS Web Service)
Right now the module has one block which could be configured to load a single block from another xoops, and the main page will get the first page of news module via soap, (just the data) and then renders the output with a template like the news module template.
I will upload the files Over 2 different domains for an online test and let you all know the results.
Just I want to know if anyone has done the same thing and/or something similar to this?
I think this will bring use a real multi portal with great enhancements, any ideas?

2
BlueStocking
Re: xoopsnusoap

by farshid on 2007/7/8 11:04:46

It sounds exciting.

You are of course, invited to include http://xoops-end-user.com/ in any testing you might need or want to do.

Currently, take a look at
http://www.xoops.net.br/ and examine the new version XOOPS that Gibphp has provided me for testing.
Register and you gain full access with admin privledges.

You may add blocks as you see fit and if you have something that needs to be uploaded I will work with you.

http://xoops-end-user.com/xoops01 << VACANT
http://www.xoops.net.br << PURE XOOPS 2.0.16 INSTALL
http://www.xoops.net.br << MediaWiki
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

3
farshid
Re: xoopsnusoap
  • 2007/7/8 19:49

  • farshid

  • Just popping in

  • Posts: 34

  • Since: 2004/11/9


Hi;

Thanks for your suggestion, it is really great.
Thanks to all the active guys bringing new things to use (just like giba and many more...)
I have registered, but yet no email! I am waiting...
And about testing, at this point, what I have already done has many security problems, so although your suggestion is really great and respected for me, I prefer not to do that on your site but some testing sites on my server, any way if despite this risk you want to do that let me know, and I will give you the files to upload and take the test.

Thanks again;
Farshid

4
BlueStocking
Re: xoopsnusoap

ok, I activated you and Giba... {{giggle}} I hadn't activated him either... Thanks for letting me know.

I want you to work either in the subdirectory xoops01 or xoops02 They are open too with admin privledges.

they are different instances of XOOPS install and won't interfer with the xoopers install.
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

5
farshid
Re: xoopsnusoap
  • 2007/7/8 20:51

  • farshid

  • Just popping in

  • Posts: 34

  • Since: 2004/11/9


OK; Thanks; just to mention, browsing to http://xoops-end-user.com/xoops01/ and I get a 403 err.
Anyway tommorow I will work a little more on it and we will manage things then.

Thanks;
Farshid

6
BlueStocking
Re: xoopsnusoap

Thanks it is an empty directory and the index.htm was renamed index01.htm, I was readying it for another install of xoops.
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

7
damaster
Re: xoopsnusoap
  • 2007/7/8 21:59

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


Because XOOPS core don't provide such "service" (your referring to a new module) and because XOOPS can't "control" and "secure" its own functions, i'm quite sure that idea comes from another project. If i'm right, you know where to find my suggestion for such "service".

Have Fun !

I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

8
BlueStocking
Re: xoopsnusoap

HI Damaster,
Also, I have no doubt but what you are DA XOOPS MASTER.

Glad to meetcha!

BTW: what 'service' are we talking about?
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

9
farshid
Re: xoopsnusoap
  • 2007/7/10 8:46

  • farshid

  • Just popping in

  • Posts: 34

  • Since: 2004/11/9


Hi all;

It is done!
http://www.fanafzar.com/xoopsnusoap
move 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.zip
what 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

10
damaster
Re: xoopsnusoap
  • 2007/7/11 5:58

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


@BlueStocking

'service' is something missing on Xoops,
that Farshid is implementing and contributing to reduce the gap.


@Farshid

What you carry out is enormous. We share ideas, concepts and code. We study and learn while developing. To me, that's open source spirit.
There's not "us" vs "them", everyone is part of "community.
And I sincerely admire such initiatives that remember me
Orpheus organization model similar to what we see on XOOPS Cube project.

Have Fun !

I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

Login

Who's Online

444 user(s) are online (344 user(s) are browsing Support Forums)


Members: 0


Guests: 444


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits