Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Secure web service and digital certificate
Message
De
11/12/2012 06:11:21
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Secure web service and digital certificate
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01559280
Message ID:
01559280
Vues:
93
Hi folks!
I'm trying to consume a Brazilian Government web service without success.
This web service requires a secure connection and a digital certificate.
If I navigate to the web service address, IE (or FireFox) asks me which certificate I want to use and displays the web service description.
If I try to add this web service in the task pane an error occurs.
I'm using the following code:
Local oProxy As "MSSOAP.SoapClient30"
oProxy = Createobject("MSSOAP.SoapClient30")
oProxy.ClientProperty("ServerHTTPRequest") = .T.
oProxy.MSSoapInit("https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx?WSDL")
oProxy.ConnectorProperty('UseSSL') = .T.
oProxy.ConnectorProperty("SSLClientCertificateName") = 'MyCertificateName'
oProxy.ConnectorProperty("ProxyServer") = "utmproxy.folhamatic.com.br:3128"
oProxy.ConnectorProperty("Timeout") = 120000
oProxy.ConnectorProperty("ConnectTimeout") = 120000
m.loProxy = Null
MSSoapInit method returns the following error (in portuguese):
OLE IDispatch exception code 0 from WSDLReader: WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: O tempo limite da operação foi atingido
HRESULT=0x1: Função incorreta.
- WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: Parâmetro incorreto.
- Client:One of the parameters supplied is invalid. HRESULT=0x80070057: Parâmetro incorreto.
This means something like a timeout, wrong parameter.
The WSDL file is attached.
Please, someone could help me to solve this?
Emerson Santon Reed
"One Developer CAN Make a Difference. A community CAN make a future." - Craig Boyd
Répondre
Fil
Voir

Click here to load this message in the networking platform