Pessoal,
Estou utilizando o ambiente de desenvolvimento VB.NET.
Consegui chamar via browser o endereço, inclusive ele aparece a lista de certificados, e eu informa a sennha.
https://preprod-efinanc.receita.fazenda.gov.br/WsEFinanceira/WsRecepcao.asmx
Mas ao tentar adicionar em WebReference, ocorreu o erro abaixo:
There was an error downloading ‘https://preprod-efinanc.receita.fazenda.gov.br/WsEFinanceira/WsRecepcao.asmx’.
The request was aborted: Could not create SSL/TLS secure channel.
Erro ao baixar
‘https://preprod-efinanc.receita.fazenda.gov.br/WsEFinanceira/WsRecepcao.asmx/$metadata’.
Alguém poderia me ajudar ?
At.
Antony
Li em alguns fóruns que precisa alterar a app.config.
Tentei colocar algumas informações, mas ainda não deu certo.
<system.serviceModel>
<bindings>
<customBinding>
<binding name=”WsRecepcaoSoap12″>
<textMessageEncoding messageVersion=”Soap12″ />
<httpsTransport authenticationScheme=”Digest” requireClientCertificate=”true” />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address=”https://efinanc.receita.fazenda.gov.br/WsEFinanceira/WsRecepcao.asmx”
binding=”customBinding” bindingConfiguration=”WsRecepcaoSoap12″
name=”WsRecepcaoSoap12″ />
</client>
</system.serviceModel>
confere no arquivo wsdl costumava faltar o “s” no http
<soap:address location=”http://efinanc.receita.fazenda.gov.br/WsEFinanceira/WsConsulta.asmx” />
</wsdl:port>