WEBSERVICE Versão 3.0

Token (chave de acesso)
Ação (função à executar)
 
Testar ação selecionada

Exemplo de chamada em PHP

                    
                    <?php
                    $opts = Array(
                                  'http'=>Array(
                                        'header'=>"Content-type: application/x-www-form-urlencoded",
                                        'method'=>'POST',
                                        'content'=>http_build_query(Array(      'chave'      => 'SUA CHAVE (token)',
                                                                                'acao'       => 'NOME DA ACAO',
                                                                                'parametro1' => 'PARAMETRO1',
                                                                                'parametro2' => 'PARAMETRO2',
                                                                                'parametron' => 'PARAMETROn'
                                                                        ))
                                                )
                                );
                    $context = stream_context_create($opts);
                    $xml = simplexml_load_string(file_get_contents('https://ws.curifestweb.totem.app.br/verifica.php', false, $context));

                     echo "Resultado: ".strval($xml->resultado)."
"; echo "Detalhes: ".strval($xml->ndet)."
"; foreach ( $xml->det as $key => $value ) { $detalhe = $value; echo "----------------
"; echo "Codigo: ".strval($detalhe->codigo)."
"; echo "Projeto: ".strval($detalhe->projeto)."
"; echo "Endereco: ".strval($detalhe->endereco)."
"; echo "Numero: ".strval($detalhe->numero)."
"; echo "Complemento: ".strval($detalhe->complemento)."
"; echo "Cidade: ".strval($detalhe->cidade)."
"; echo "Estado: ".strval($detalhe->estado)."
"; } ?>

Exemplo de Chamada em JQUERY

                        $.ajax({
                            type: 'POST'
                            ,url: "https://ws.curifestweb.totem.app.br/verifica.php"
                            ,data: {
                                    'chave'      : 'SUA CHAVE (token)'
                                   ,'acao'       : 'nome_da_acao'
                                   ,'dataType'   : 'json?????'
                                   ,'parametro1' : 'PARAMETRO1'
                                   ,'parametro2' : 'PARAMETRO2'
                                   ,'parametroN' : 'PARAMETRON'
                            }
                            ,success: function (result) {
                                console.log(result);
                                //sucesso - retorna o xml
                            }
                            ,error: function () {
                                console.log('Erro');
                            }
                        });
                
CF Sistemas

Rua Major Heitor Guimarães, 1374
Campina do Siqueira
Curitiba - PR

Telefones

(41) 3029-5010
(41) 99221-2726
(41) 99129-9896