Page 1 of 1

SOAP - PHP

Posted: Fri Apr 29, 2005 4:03 am
by matrixd
My client have a third party which will provide information in a SOAP format. I have to sent SOAP request s over HTTP and server will respond in a SOAP message. I tried using inbuild SOAP extension but it always try to find out Web service while the server I am trying to connect dont have WSDL running. They are just providing it over HTTP.

I have tried and got successful in communication by using fsock but the data I received I have not been able to covert in an array or DoM object so that I can manipulate it properly. Can any one help with the same. I am little new to PHP so I dont have basics clear might be that is the reson I am not getting what to do next after receiving data from the server in a String :?

I tried xml_parse_into_struct() but it give me all data in array which I dont understand how to manipulate. I am a Flash guy so the life was very simple for me in Actionscript. :wink: )

Here is the example of SOAP request and responce by third party this will give u a clear Idea what I am trying to create. I have to send an SOAP request and receive the request, parse it and show on the page.

http://195.57.250.36/barceloDS/interface/example

Posted: Fri Apr 29, 2005 5:21 pm
by ol4pr0
Now i know this is not what you want to hear.

But you might find it easyer creating something in JAVA.
Also a program called Altova XMLSPY can be handy incases like yours :)

Enjoy

php only

Posted: Sat Apr 30, 2005 4:10 am
by matrixd
Thanks for the reply. No, I cant use any other technology as the project is totaly in PHP and that what the clients requirement is. Please, suggest me how to go about it. Its do or die situation for me. Thanks

Posted: Sat Apr 30, 2005 4:30 am
by timvw
I'm afraid you're going to die if handling an array is too advanced for you...
Find yourself a decent tutorial/book that teaches you the basics... i think this forum has a sticky subject dedicated to it.

After that an article like http://www.sitepoint.com/article/php-xm ... ng-rss-1-0 will become easy to follow and give you some serious hints how you can implement your solution.

thanks

Posted: Thu May 05, 2005 10:10 am
by matrixd
Hi Tim and 0lpro4,
I have got the solutions. Thank you very much for relplies.