Commit 94b45c9aab2af0ea67f622b6c72fa0db6a6d27bc
1 parent
ab8c4648
Exists in
master
and in
7 other branches
Atualização
Showing
2 changed files
with
1 additions
and
96 deletions
Show diff stats
ferramentas/vinde/soap.php
... | ... | @@ -1,96 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -$url = "http://servicos.inde.gov.br/inda.asmx?wsdl"; | |
4 | -$soapClient = new SoapClient($url); | |
5 | - | |
6 | -$functions = $soapClient->__getFunctions(); | |
7 | -$resultado = $soapClient->Lista_recursos(); | |
8 | -$recurso = $soapClient->Recursos("0abcb539-a06f-44cc-89bd-8d10260e8552"); | |
9 | -echo "<pre>"; | |
10 | - | |
11 | -echo $soapClient->__getLastRequestHeaders(); | |
12 | -echo $soapClient->__getLastRequest(); | |
13 | - | |
14 | -var_dump($functions); | |
15 | -var_dump($resultado); | |
16 | -//echo $resultado[0];exit; | |
17 | - | |
18 | -$return = $soapClient->__soapCall("Lista_recursos"); | |
19 | -echo("\nReturning value of __soapCall() call: ".$return); | |
20 | - | |
21 | -exit; | |
22 | -$recurso = $soapClient->Recursos("0abcb539-a06f-44cc-89bd-8d10260e8552"); | |
23 | -var_dump($recurso); | |
24 | -exit; | |
25 | - | |
26 | - | |
27 | -try { | |
28 | - $x = @new SoapClient("http://servicos.inde.gov.br/inda.asmx?wsdl"); | |
29 | -} catch (Exception $e) { | |
30 | - echo $e->getMessage(); | |
31 | -} | |
32 | -var_dump($x); | |
33 | -exit; | |
34 | - | |
35 | - | |
36 | -$url = "http://www.camara.gov.br/SitCamaraWS/Deputados.asmx?wsdl"; | |
37 | - | |
38 | -$client = new SoapClient($url); | |
39 | -var_dump($client);exit; | |
40 | -//$params->param1 = $value1; | |
41 | -//$params->param2 = $value2; | |
42 | -//$objectresult = $client->MyMethod($params); | |
43 | -$objectresult = $client->Lista_recursos(); | |
44 | -$simpleresult = $objectresult->Lista_recursos; | |
45 | -print_r($simpleresult); | |
46 | - | |
47 | -/* | |
48 | -try { | |
49 | - $x = @new SoapClient("http://www.camara.gov.br/SitCamaraWS/Deputados.asmx?wsdl"); | |
50 | -} catch (Exception $e) { | |
51 | - echo $e->getMessage(); | |
52 | -} | |
53 | -var_dump($x); | |
54 | -exit; | |
55 | - | |
56 | - | |
57 | -$client = new SoapClient('http://www.camara.gov.br/SitCamaraWS/Deputados.asmx'); | |
58 | -var_dump($client);exit; | |
59 | -$function = 'ObterPartidosCD'; | |
60 | -/* | |
61 | -$arguments= array('ConvertTemp' => array( | |
62 | - 'Temperature' => 31, | |
63 | - 'FromUnit' => 'degreeCelsius', | |
64 | - 'ToUnit' => 'degreeFahrenheit' | |
65 | -)); | |
66 | - | |
67 | -//$options = array('location' => 'http://www.webservicex.net/ConvertTemperature.asmx'); | |
68 | - | |
69 | -$result = $client->__soapCall($function);//, $arguments, $options); | |
70 | - | |
71 | -echo 'Response: '; | |
72 | -print_r($result); | |
73 | - | |
74 | -*/ | |
75 | - | |
76 | -/* | |
77 | -include(dirname(__FILE__)."/../../pacotes/cpaint/cpaint2.inc.php"); | |
78 | - | |
79 | -include(dirname(__FILE__)."/../../pacotes/SOAP/nusoap.php"); | |
80 | - | |
81 | -$cp = new cpaint(); | |
82 | - | |
83 | -$servico = "http://servicos.inde.gov.br/inda.asmx"; | |
84 | -$servico = "http://www.camara.gov.br/SitCamaraWS/Deputados.asmx"; | |
85 | -$funcao = $_GET["funcao"]; | |
86 | -$resultado = array(); | |
87 | -$soapclient = new nusoap_client($servico); | |
88 | - | |
89 | -$resultado = $soapclient->call($funcao,array(),'http://www.camara.gov.br/SitCamaraWS/Deputados'); | |
90 | -var_dump($resultado); | |
91 | - | |
92 | -$cp->set_data($resultado); | |
93 | -$cp->return_data(); | |
94 | -*/ | |
95 | - | |
96 | -?> | |
97 | 0 | \ No newline at end of file |