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