Retrieve data from XHTML - 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
quark2012
Forum Newbie
Posts: 1
Joined: Mon Dec 15, 2008 9:30 am

Retrieve data from XHTML - SOAP & PHP

Post by quark2012 »

Hi,

I Have a big problem with SOAP. I want to retrieve some data from XHTML document and I don't know how to do that.

if I Have for example this part of XHTML code:
<div class="first">
<p>some text</p>
<a href="xxx" title="yyy">link1</a>
<p>some other text</p>
<a href="aaa" title="bbb">link2</a>
</div>

and I want to retrieve data from element a or element p. So my result will be "link2" or "some other text".

How to write it to SOAP language?
I work in PHP so I find this:

<?php

$client = new SoapClient(NULL,

array(
"location" => "http://www.example.com/",
"uri" => "urn:xmethods-delayed-quotes",
)

);

$result = $client->__call('href', array(new SoapParam("Google", "a")));


?>

but it doesn't work.
I don't know what uri exactly means but is required when wsdl is not using.
And I don't understand _call function.
Maybe this all is wrong code.

Can anyone write SOAP code for me please? But using SOAP with PHP functions only.

Thank you very much.
User avatar
phpserver
Forum Newbie
Posts: 22
Joined: Mon Oct 20, 2008 2:59 am
Location: Eastleigh,Nairobi

Re: Retrieve data from XHTML - SOAP & PHP

Post by phpserver »

What exactly do you want to achieve?.I read your code and its hard to see what you are up to in the first place.
Post Reply