A webservice i need to access with navision needs certificate authentication and navision also needs to accept the certificate sent by the webservice.Is there a way navision can send and accept a certificate? I saw that WinHttp has a setclientcertificate but when i use that the webservice returns a 'A certificate is required to complete client authentication' error.
0
Comments
I've the same problem..
Did you find a solution??
Thanx
I guess you want to consume a 3rd party webservice, don't you? We did this several times, also on ssl. As far as I rembember we just had to accept the certificate on the machine from where the webservices were consumed, and once it worked with internet explorer it worked also with navision. In another case all the clients (inhouse) did use a proxy service and only the proxy service connected to the real werbservice.
Hope this helps.
Thomas
does anyone know how to accept the certificate on the machine from where the webservices is consumed and don't use GUI (graphic user interface)?
Thomas
I know what you mean but I dont know the answer. But someone should know it, for example the publisher of the certificate.
Another possibility is to use a kind of internal proxy service on one server. In this case, clients are pointing to the proxy, proxy is pointing to the real web service.
Thomas
nobody have never used XMLHttp.send(XMLDocument) with SSL comunication, almost with certificate installed on NAV server?
My code is :
XMLHttp.open('POST','http://www.xxxxxx.it/xxxx-web-services services',FALSE);
XMLDocument.loadXML('<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"'
+ ' xmlns:xsd="http://www.sgate.ancitel.it/xsd/">'
+ ' <soapenv:Header/>'
+ ' <soapenv:Body>'
+ ' <xsd:richiestaPresaInCaricoLotto>'
+ ' <xsd:mittente>'
+ ' <xsd:login>user</xsd:login>'
+ ' <xsd:password>xxxxx</xsd:password>'
+ ' </xsd:mittente>'
+ ' <xsd:idUltimoLottoRicevutoCorrettamente>446983721</xsd:idUltimoLottoRicevutoCorrettamente>'
+ ' <xsd:numeroMessaggi>5</xsd:numeroMessaggi>'
+ ' </xsd:richiestaPresaInCaricoLotto>'
+ ' </soapenv:Body>'
+ '</soapenv:Envelope>');
//Sending XML Response
XMLHttp.send(XMLDocument);
//Captureing the Final Response
XMLDocument.load(XMLHttp.responseXML);
// Save XML result
XMLDocument.save('C:\Dati\Path\Log\xml.xml');
So it worked with SSL?
Thomas
Thanks, and congrats!
I have read that you have resolved using WinHttp, but how did you have read the certificate?