mjstudios
Members-
Total de itens
20 -
Registro em
-
Última visita
Tudo que mjstudios postou
-
Salve pessoal, preciso consumir um webservice porem ele esta sobe autenticação HTTP e não consigo passar esses parametros. Tentei dessa maneira: <?php $communityService = new SoapClient("https://homologa.xml", array('login' => "meuusuario", 'password' => "minhasenha")); var_dump($communityService->getFuncao(''); ?> Retorna o Erro: Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in /home/public_html/site/w.php:6 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="... ja estive olhando algumas coisas sobre SoapHeader mas não funcionou tambem. Alguém tem uma dica como posso resolver isso? Obrigado Junior
-
Ainda não, seu problema é com a conexão ao BCB?
-
PHP 5.5.9
-
Alguém?
-
This XML file does not appear to have any style information associated with it. The document tree is shown below. <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://webservice.operacional.scr2.bcb.gov.br/"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Scr2WebService"targetNamespace="http://webservice.operacional.scr2.bcb.gov.br/"> <wsdl:types> <xs:schema xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://webservice.operacional.scr2.bcb.gov.br/"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://webservice.operacional.scr2.bcb.gov.br/">...</xs:schema> </wsdl:types>
-
https://scr.bcb.gov.br/wsscr/ControleCliente_homologa.xml
-
Obrigado Junior, olhei o que você indicou e eu ate ja conhecia o laravel (muito bom) porem pelo o que entendi não vai resolver meu problema por eu preciso me conectar a um webservice, eu tenho que fazer é o client funcionar usando SOAP. Help Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in /home/public_html/site/w.php:6 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...
-
Passa uma dica ai como fazer isso usando REST. Obrigado