Reading xml

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

assilem1986
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 asp.net that return

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

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CalculadoraResponse xmlns="http://tempuri.org/">
<CalculadoraResult>
<xsd:schema>schema</xsd:schema>xml</CalculadoraResult>
</CalculadoraResponse>
</soap12:Body>
</soap12:Envelope>



I call the webservice:

<?php
$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: No registered users and 2 guests