SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question SOAP and XML_RPC?

    Hi,

    I want to provide an webservice server, written in SOAP.
    Clients from other Hosts should get data from my SOAP server, but I canīt guarantee, that SOAP is installed at the client.
    Is it possible to request a SOAP server with a "default shared webhosting" setup?
    And if yes, what library makes this possible? XML_RPC perhaps?

    Thank you, Transmitter

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SOAP is standard XML with a specific namespace. That said, all the client needs is the ability to parse XML. Now, it's hard for me to think of a language that DOESN'T support soap. Heck, you could make an AJAX call with Javascript and parse SOAP . XML_RPC and SOAP are two different ways to meat the same goal. So no, they're not the same thing, nor is XML_RPC a "library" to handle SOAP calls.

  3. #3
    SitePoint Evangelist DMacedo's Avatar
    Join Date
    May 2004
    Location
    Braga, Portugal
    Posts
    596
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First let's make this clear: SOAP is one thing, and XML-RPC is another thing.
    Both allow you to provide webservices, but both work very differently.

    Since you want to provide an webservice using SOAP. I'd advise you to use NuSOAP which is an excelent PHP toolkit to create your webservice server or client. If you search around the web for a way to create a server using NuSOAP, you'll find a whole range of examples from which you can learn
    ~ Daniel Macedo

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for enlightenment!

    Very nice, and NuSOAPs examples also works with a PHP binary wich wasnīt compiled with soap extension.
    Now I try my own first steps, thank you

  5. #5
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you might also want to check the SOAP in the PEAR package. works great!

  6. #6
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Iīve tested NuSOAP, it works great.
    Iīm not a big fan of PEAR .. you need to include to much, installation is not as easy as it is with NuSOAP, and so on.
    Iīll give NuSOAP a chance.

    But unfortunately I didnīt found many complex examples with NuSOAP, are there any good further readings?

    Thank you so far

  7. #7
    is_empty(2); foofoonet's Avatar
    Join Date
    Mar 2006
    Posts
    1,000
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NuSoap got me out of a hole when using PHP4, but PHP5 has a soap extension now.

    Just started using it, miles faster.

    Found this today, from ibm - build a web service with PHP

  8. #8
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On my own Server, using the SOAP extension is no problem.
    But what if I have to do a job on a shared host? Not many hosters provide the SOAP extension.

  9. #9
    is_empty(2); foofoonet's Avatar
    Join Date
    Mar 2006
    Posts
    1,000
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess the answer to your point is pretty obvious: If they don't supply PHP5 and soap extension move hosting company, or else go back to PHP4 and nusoap.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •