COM Web Services Interface library (VNUK) i can't make it work with HTTPS

forum.td.development (2005-2010)
pabloi13
Argentina
Posts: 7
Joined: 25 Feb 2019, 21:10
Location: CABA, Argentina

COM Web Services Interface library (VNUK) i can't make it work with HTTPS

Post by pabloi13 » 26 Aug 2009, 16:16

 Posted by:  Pablo Istillarte 

We are having problems to consume a Certificated Web Services (HTTPS). The
above mentioned problem, its happend after the installation of a few
security patches of Windows 2000 (we do not know which) in the client who
run our application. Before the installation of the security patches our
application was consuming the Certificated Web Services (HTTPS). The above
mentioned process was transparent for us since our application is not
develop bearing in mind the possibility of consuming Certificated Web
Services (HTTPS). The application is developed in Centura 1.5.1 PTF 6. For
the consume we use the library MSXML4.dll, based in:

COM Web Services Interface library

Module: comws.apl

Created: 2003-10-04

Author: Lubos Vnuk (VNL)

Revision: 04 - 20040712 - VNL

DevTool: SQLWindows/32 1.5.1 PTF6

http://sqlweb.vnuk.org/gup/samples/XML&WebServices/comws%20CTD151.zip

We generate a test aplication, to simulate the consume of the Web Service.
We realize, between others, the following tests:

- Reinstalation Certificated.
- Ports Sniffing: the message XML when it is HTTPS does not pass across the
specified port.
- Monitoring application (with Process Monitor): when there is sent a
message XML to HTTPS, the MSXML4.dll look for CERTIFICATES in several
non-existent folders of the NT user .
- Method setOption (3) of MSXML4: in the test aplication we used to indicate
the Certificate to use.
- Installation of another application in JAVA (not use MSXML4. DLL): the
same one works correctly.
- Server Error: the code is 401=Unauthorized.
- Client Error: the code is 4096=Mismatch between the visited hostname and
the certify you name being used on the server.

Any idea?

Thanks,

Pablo Daniel

StefanM
Germany
Posts: 674
Joined: 10 Aug 2018, 15:57
Location: Bavaria

COM Web Services Interface library (VNUK) i can't make it work with HTTPS

Post by StefanM » 28 Aug 2009, 10:45

 Posted by:  Stefan Misch 

Hello Pablo,

still having problems...

From your previous post I'm a bit confused because sometimes you talk
about Lubos' APLs then you talk abut MSXML2_ServerXMLHTTP40...

Did your TD app ever work with the web service? Or it did work before
but using HTTP, but then the WS was configured to use HTTPS instead?
I had a quick look at Lubos' comws libraries. They use Microsoft.XMLHTTP
component for MSXML and not MSXML2_ServerXMLHTTP40!

IIRC XMLHTTP is the simpler interface which does not support HTTPS. You
must use MSXML2_ServerXMLHTTP40 (at least I use this in my own APLs).

Regarding the 409 error: for which URL is the certificate issued and
which URL do you use in your request?

Stefan

pabloi13
Argentina
Posts: 7
Joined: 25 Feb 2019, 21:10
Location: CABA, Argentina

COM Web Services Interface library (VNUK) i can't make it work with HTTPS

Post by pabloi13 » 28 Aug 2009, 19:53

 Posted by:  Pablo Istillarte 

Hi Stefan,

Unfortunately, still having problems ...

Our app was working with the web service until the installation of security
patches. Then stop working.

App. DETAIL:

- Use MSXML2_ServerXMLHTTP30
- Add 'Authorization' tag in Request Header.

Error 409: The certificate is installed from the URL that accesses the app.
How do I know if they are correct both URLs?

I attached a file (SimXML.zip) that include the source code of app that
simulates the consume of the certificate web services, in the same way that
makes the actual app.

SIM aplication DETAIL:

- Use MSXML2_ServerXMLHTTP40
- Add 'Authorization' tag in Request Header.
- Use setOption.

The simulator works with HTTP, but not work with HTTPS. Send ERROR (401).

Muchas gracias,

Pablo

Attachment: SimXML.zip

StefanM
Germany
Posts: 674
Joined: 10 Aug 2018, 15:57
Location: Bavaria

COM Web Services Interface library (VNUK) i can't make it work with HTTPS

Post by StefanM » 29 Aug 2009, 10:52

 Posted by:  Stefan Misch 

Hola Pablo,

the variants "usuario" and "pass" never get set. Have you tried to
- set usuario to sUser/dfUser
- set pass to the encyrpted sPass

Normally open() uses basic authentication. Are you sure that you need
the other options in your test app?

Regarding the certificate: have you tried importing the certificate into
IE's certificate cache? To do so open IE, select menu "Tools.Internet
Options" then select tab "Contents" click on button "Certificates" then
click on button "Import..". Install the certificate as a "trustworthy
certificate" (hope you can find this as I have a german IE and
translated the menus and option names).

If you still have problems please contact me by private mail, as this
will speed up communication (remove "removethis" from the email address
when answering).

Saludos de Alemania,
Stefan

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2813
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

COM Web Services Interface library (VNUK) i can't make it work with HTTPS

Post by Dave Rabelink » 29 Aug 2009, 13:11

 Posted by:  Dave Rabelink 

Have you tried this one ?

https://wiki.tdcommunity.net/index.php/ ... sing_MSXML

Dave.

pabloi13
Argentina
Posts: 7
Joined: 25 Feb 2019, 21:10
Location: CABA, Argentina

COM Web Services Interface library (VNUK) i can't make it work with HTTPS

Post by pabloi13 » 31 Aug 2009, 15:51

 Posted by:  Pablo Istillarte 

Hi Dave,

I tested ignoring the mistakes of certificate, the method SEND does not
produce errors. But the error "401 Unauthorized" appears when I read the
response XML (PROPGETRESPONSEXML).

Any idea?

Thanks,

Pablo

Return to “td.development”

Who is online

Users browsing this forum: [Ccbot] and 0 guests