Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: PHP NuSoap + XCache
PostPosted: Sun Feb 21, 2010 9:01 am 
Offline
Senior Newbie

Joined: Sun Feb 21, 2010 8:53 am
Posts: 10
Hi all

We are currently nearing completion of a project that needs to handle many 1000s of SOAP requests from around the world and have written the SOAP service using NuSOAP instead of the native PHP Soap extensions due to hearing PHP's SOAP extensions weren't all that great...

We have a Linode 720 server set up using Ubuntu 8.04 LTS, Nginx and Xcache but wondering if anyone on here has any enterprise level SOAP experience that they could share with us or some basic pros and cons for going with nusoap or php flavours etc?

Many thanks in advance for ANY thoughts on ANY of the above

Andy :D


Top
   
 Post subject:
PostPosted: Sun Feb 21, 2010 5:59 pm 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
Have you considered using JSON? I had a popular application receiving many SOAP requests and after switching to JSON I saved a lot of resources.

I'd recommend doing some profiling to see if xcache or APC does better... you may be surprised. It would also show you what will happen under load, like unexpectly running out of memory and ending up in swapdeath.


Top
   
 Post subject:
PostPosted: Mon Feb 22, 2010 4:01 am 
Offline
Senior Newbie

Joined: Sun Feb 21, 2010 8:53 am
Posts: 10
Thanks for the quick reply!

Are you talking about using the JSON extension within PHP? I had seen this but not gone into any depth with it. Will take a fresh look now...

As for Xcache - I have it installed due to fact it seemed to work better in other scenarios / web projects of ine in the past compared to APC but I agree some profiling needs to be done for this specific new project.

Any tips on where there are any SOAP gurus for hire anywhere if we get stuck?


Top
   
 Post subject:
PostPosted: Mon Feb 22, 2010 7:00 am 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
There seems to be one that is pretty much built in to PHP and works fast. You can either build your own JSON server that does JSON-RPC or find one you like... if you do, let me know as some that I used I wasn't 100% happy with.

It seems to be many many times faster than the overhead of making complicated (usually overcomplicated) XML envelopes with all the SOAP info in. Although I do understand it can reduce friction between developers etc in some situations.

I'd help you but I'm booked up for the next few months, a good thing!.


Top
   
 Post subject:
PostPosted: Mon Feb 22, 2010 7:09 am 
Offline
Senior Newbie

Joined: Sun Feb 21, 2010 8:53 am
Posts: 10
"There seems to be one that is pretty much built in to PHP"

Which one are you taking about here?


Top
   
 Post subject:
PostPosted: Mon Feb 22, 2010 7:25 am 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
http://uk.php.net/manual/en/book.json.php

Probably not built-in but seems to be in most PHP installs.


Top
   
 Post subject:
PostPosted: Mon Feb 22, 2010 7:42 am 
Offline
Senior Newbie

Joined: Sun Feb 21, 2010 8:53 am
Posts: 10
After looking at this I can't seem to work out any way that you could hide access details for this system like SOAP as the data being sent is always accessible via the client side .js :?

Via SOAP I can do this:

Client sends soap request with Access id & token to my Soap Server

If user checks out
return data
else
user not allowed
display error
end


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group