PHP, SOAP and communicating with a 3rd party server

Posted on 2012-08-16
Medium Priority
Last Modified: 2013-11-19

I'm revisiting a project that reared it's head a couple of years ago but never really progressed. I now have to communicate with a associate business to send requests and receive resulting data to display (products, costs, availability etc.) The 3rd party insists that all requests (and responses) must be in SOAP envelopes.

I've dabbled with CURL and XMLHTTPRequest for comms in the past (not too successfully!) but have little understanding of SOAP despite trawling the web for tutorials for real beginners.

Can anyone point me at some SOAP 101 type resources and tutorials that may guide me through setting up a new soap client to talk with another server and data source?

Can I use SOAP to handle the whole communication process or do I need to invoke XMLHTPRequest / JavaScript etc. to handle the comms?

Would appreciate any advice / lead / feedback as I think I've buried myself so far into these woods that I can't see the trees anymore!!

My site is hosted on an Apache server running PHP and SOAP - so all components seem to be available to me. I have some knowledge of XML and the rudiments of web services.

Thanks in anticipation.

Question by:GaryKevinBanks
LVL 111

Expert Comment

by:Ray Paseur
ID: 38303325
Is there any chance that the web service can expose a RESTful API?  The WWW is littered with the rotting carcasses of failed SOAP implementations, but I have never seen a REST service that anyone could not understand immediately.  That is why Yahoo, Google, Facebook and others have abandoned SOAP in favor of REST.  REST is just common sense.  SOAP is a complicated and opaque struggle.
LVL 16

Accepted Solution

Rose Babu earned 2000 total points
ID: 38303663

Author Comment

ID: 38310776
Many thanks for the response Ray - but it HAS to be SOAP I'm afraid.

Thank you too srosebabu - I'll take a look at those examples, give it all a go and get back to you.
LVL 26

Expert Comment

ID: 38384175
Possibly of interest: http://guide.soaplite.com/#access to remote services

Author Comment

ID: 38454065
Thanks arober11 - will take a look. Sorry for the delayed response - I've been out of circulation for a few weeks.

Featured Post

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question