Jump to content

Reading Xml


assilem1986

Recommended Posts

Hi! biggrin.gif

 

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/20...chema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/20...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 huh.gif

Link to comment
https://forums.phpfreaks.com/topic/269389-reading-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.