Page 1 of 1

Retrieve data from XHTML - SOAP & PHP

Posted: Mon Dec 15, 2008 9:32 am
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.

Re: Retrieve data from XHTML - SOAP & PHP

Posted: Tue Dec 16, 2008 1:17 am
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.