Add service reference - vb.net

.NET

Automação Comercial

03/12/2014

Pessoal


Alguém já consumiu o Web Service da NFe (Consulta de Status do Web Service), estou utilizando o Visual Studio 2010 com vb.net e windows forms.

link https://nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx


Tentei até alterar o app.config, mais também não tive sucesso, caso alguém saiba agradeço desde já ?


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<binding name="nfestatusservico2Soap12">
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</configuration>


Veja o erro que está dando ?

The request was aborted: Could not create SSL/TLS secure channel.
Metadata contains a reference that cannot be resolved: 'https://nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx'.
The HTTP request was forbidden with client authentication scheme 'Anonymous'.
The remote server returned an error: (403) Forbidden.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Controlesis Ltda

Controlesis Ltda

Curtidas 0
POSTAR