Jump to content

Retrieve data from XHTML - SOAP & PHP


Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/137058-retrieve-data-from-xhtml-soap-php/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.