Reading xml

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Fri Oct 12, 2012 7:52 am

Reading xml

Postby assilem1986 » Fri Oct 12, 2012 7:57 am

Hi! :D

I have a webservice in that return

Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap12="">
<CalculadoraResponse xmlns="">

I call the webservice:

$client = new SoapClient("webserviceaddress");
$result = $client->Calculadora(array('Param1'=>'1'));

$simpleresult = $result->CalculadoraResult;

How can i read the result?
I have another function in that webservice that return a string and everything its ok, but with this function i dont know how to read the result :?

Return to “PHP coding => General”

Who is online

Users browsing this forum: Google Adsense [Bot] and 4 guests