PHP XML & SOAP

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
zico225
Forum Newbie
Posts: 2
Joined: Mon Aug 11, 2008 9:36 am

PHP XML & SOAP

Post by zico225 »

Hi there,

Not overly technical on server side problems, but trying to retrive XML in a php page but not working. Does my server need SOAP installed to work correctly. I have PHP5 on server.

cheers

justin
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: PHP XML & SOAP

Post by nowaydown1 »

Hey Justin,

Welcome to the forum! We need a few more details to be able to give you some guidance.

* What are you trying to do exactly? (Web service request with SOAP, fetching XML for an RSS feed, something else?)
* What isn't working about it? (Do you get any errors or anything)
* Do you have some code you could post with what you've already tried?

If you just want to get some XML, and it isn't SOAP, I would have a look at CURL (http://us.php.net/manual/en/function.curl-init.php)
Alan01252
Forum Newbie
Posts: 12
Joined: Sun Aug 03, 2008 3:20 pm

Re: PHP XML & SOAP

Post by Alan01252 »

Just to add nowaydown1

When looking at xml in php I find http://uk.php.net/simplexml Very useful ;)
zico225
Forum Newbie
Posts: 2
Joined: Mon Aug 11, 2008 9:36 am

Re: PHP XML & SOAP

Post by zico225 »

cheers for your help guys.

Whist trying the curl_init() commands i managed to get the data off the form but i'm not really sure how to edit it.

Ideally i would like simplexml() to work. I'm trying to run an external file on a different web server to mine then my server will edit the data but when i run my script i get the return of:

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "https://www.carwebuk.com/CarweBVRRB2Bpr ... ion=0.19.1" in /home/z/i/zico/public_html/carweb_test/test.php on line 1

You prob cant run this command yourself as its tied in by a specific IP address. I thought simplexml was part of PHP5. I recently upgraded from PHP4 but it doesn't work. Maybe it cant retrive data from another server? Does my server need SOAP enabled for XML to work?
Post Reply