if(!empty($_POST['submit'])) {
$client = new SoapClient('http://hidroweb.ana.gov.br/fcthservices/mma.asmx?WSDL');
$function = 'Estado';
$options = array('location' => 'http://hidroweb.ana.gov.br/fcthservices/mma.asmx');
$result = $client->__soapCall($function,$options);
var_dump($result);
?>
The result is this:
object (stdClass) # 2 (1) {["StateResult"] = > object (stdClass) # 3 (1) { ["any"] = > string (2956) "URURUGUAIARARGENTINAPGPARAGUAICHCHILEBOBOLÍVIAPUPERUCOCOLÔMBIAEQEQUADORVEVENEZUELAGUGUIANASUSURINAMEGFGUIANA FRANCESA11RORONDÔNIA12ACACRE13AMAMAZONAS14RRORAIMA15PAPARÁ16APAMAPÁ17TOTOCANTINS21MAMARANHÃO22PIPIAUÍ23CECEARÁ24RNRIO GREAT NORTE25PBPARAÍBA26PEPERNAMBUCO27ALALAGOAS28SESERGIPE29BABAHIA31MGMINAS GERAIS32ESESPÍRITO SANTO33RJRIO DE JANEIRO35SPSÃO PAULO41PRPARANÁ42SCSANTA CATARINA43RSRIO GRANDE DO SUL50MSMATO GROSSO DO SOUL51MTMATO GROSSO52GOGOIÁS53DFDISTRICA DE FEDERAL "}}
I do not understand that I need the object to be separated. Because the soap is returning to me all together. Has it like ??