17452 Posts in 4473 Topics by 1971 members
|Go to End|
23 July 2008 at 4:04pm
We're in the process of updating our website to use SilverStripe and I was hoping to integrate a soap service (used for providing software updates to our customers) with the user authentication system in SilverStripe so we don't need maintain 2 separate systems.
I've had a quick look around the code and can see that there is a soap server somewhere and that the Ministry of Tourism must have done something similar, but I can't find where I need to start. Can you give me any pointers?
Core Development Team
23 July 2008 at 5:46pm
We've used SOAP services on a few projects, I'm assuming that you didn't write or control the service you're accessing?
In either case, I recommend you use the native PHP SOAP service (and curl if I recall correctly) which makes it all a bit easier.
We converted to the SOAP response to a DataObject, which had quite a few implications and I wouldn't necessarily recommend it. If you can be a bit more specific in what you're trying to do, then I can help more.
23 July 2008 at 6:33pm Last edited: 23 July 2008 6:34pm
I haven't written it yet but it will be something I write. Basically all the service needs to do is return a list of files created after a supplied filename, per user e.g. last file downloaded is whatever.xml so it would return whatever1.xml, whatever2.xml etc. I know I could go and write a simple standalone soap service to do that but I thought it would be better to use SilverStripe for authentication considering we'll be using it for our website shortly.
28 July 2008 at 1:51pm
30 July 2008 at 1:08pm
is there a file that i can require_once to initialise the ss environment?
1 August 2008 at 9:27pm
12 August 2008 at 12:10am
I'm integrating SOAP into a Silverstripe site as well, and I'm having problems converting the SOAP results to something I can use in a SS template ; right now , I ended up converting the entire result to a dataobjectset by a looping through it pushing new arraydata on the stack...
Very inefficient and nasty....
Please tell me you know of a better alternative ? ;-)
|Go to Top|