Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » integrating with soap service

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 3438 Views
  • markd_mms
    Avatar
    Community Member
    4 Posts

    integrating with soap service Link to this post

    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?

    TIA

  • Geoff
    Avatar
    Core Development Team
    8 Posts

    Re: integrating with soap service Link to this post

    Hi,

    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.

    Geoff

  • markd_mms
    Avatar
    Community Member
    4 Posts

    Re: integrating with soap service Link to this post

    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.

    Mark

  • markd_mms
    Avatar
    Community Member
    4 Posts

    Re: integrating with soap service Link to this post

    anyone?

  • markd_mms
    Avatar
    Community Member
    4 Posts

    Re: integrating with soap service Link to this post

    is there a file that i can require_once to initialise the ss environment?

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: integrating with soap service Link to this post

    Subscribe....

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: integrating with soap service Link to this post

    Hi Geoff,

    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 ? ;-)

    3438 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.