SOAP - PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
matrixd
Forum Newbie
Posts: 3
Joined: Fri Apr 29, 2005 3:52 am

SOAP - PHP

Post 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
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post 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
matrixd
Forum Newbie
Posts: 3
Joined: Fri Apr 29, 2005 3:52 am

php only

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
matrixd
Forum Newbie
Posts: 3
Joined: Fri Apr 29, 2005 3:52 am

thanks

Post by matrixd »

Hi Tim and 0lpro4,
I have got the solutions. Thank you very much for relplies.
Post Reply