This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
The Rest - Ask For Help / Re: POST, SOAP and SSL
« on: March 21, 2013, 12:33:41 AM »
Thanks Bruce,
You've been very helpful.
Regards,
Alex
You've been very helpful.
Regards,
Alex
2
The Rest - Ask For Help / Re: POST, SOAP and SSL
« on: March 20, 2013, 07:48:14 AM »
Bruce,
one more quick question. As I set up SSLMethod property connection error is
gone, I properly send package and receive response from SOAP server. It
indicates that the package is 1554 bytes long but I just get one weird
display character after response header (even though PageLen property of the
web client object is showing the same correct content length).
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml;charset=utf-8
Content-Length: 1554
Date: Wed, 20 Mar 2013 15:43:04 GMT
Connection: close
‹
Do you have any idea why this occurs? Is it related to SSL setting I added
in any way?
Thanks in advance,
Alex
one more quick question. As I set up SSLMethod property connection error is
gone, I properly send package and receive response from SOAP server. It
indicates that the package is 1554 bytes long but I just get one weird
display character after response header (even though PageLen property of the
web client object is showing the same correct content length).
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml;charset=utf-8
Content-Length: 1554
Date: Wed, 20 Mar 2013 15:43:04 GMT
Connection: close
‹
Do you have any idea why this occurs? Is it related to SSL setting I added
in any way?
Thanks in advance,
Alex
3
The Rest - Ask For Help / Re: POST, SOAP and SSL
« on: March 20, 2013, 01:30:58 AM »
Thanks Bruce,
I would never find it myself. I knew you would be able to help me ... as always.
Regards,
Alex
I would never find it myself. I knew you would be able to help me ... as always.
Regards,
Alex
4
The Rest - Ask For Help / POST, SOAP and SSL
« on: March 19, 2013, 03:23:25 PM »
Hi,
I have serious problem with one request I'm trying to send to SOAP server with SSL. Still using Nettalk 5 but I was able to access secure SOAP services with it before. This is the code I use:
LOC:AuthStr = 'userid:password'
LOC:AuthStrLen = LEN(CLIP(LOC:AuthStr))
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.ConnectionKeepAlive = 0
ThisWebClient._HTTPVersion = 'HTTP/1.0'
ThisWebClient.ContentType = 'text/xml; charset=utf-8'
ThisWebClient.CanUseProxy = 0
ThisWebClient.HeaderOnly = 0
ThisWebClient.Cookie = ''
ThisWebClient.CustomHeader = ''
ThisWebClient.Referer = ''
ThisWebClient.UserAgent = 'Evision Sourcing'
ThisWebClient.AcceptEncoding = 'gzip,deflate'
ThisWebClient.Accept_ = ''
ThisWebClient.AcceptLanguage = ''
ThisWebClient.ContentLength = len (clip(PostString))
ThisWebClient.Authorization = 'Basic ' & NetBase64Encode (LOC:AuthStr, LOC:AuthStrLen)
ThisWebClient.AsyncOpenTimeOut = 1200
ThisWebClient.InActiveTimeout = 2000
ThisWebClient.SSL = 1
ThisWebClient.SSLCertificateOptions.CertificateFile = ''
ThisWebClient.SSLCertificateOptions.PrivateKeyFile = ''
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
ThisWebClient.SSLCertificateOptions.CARootFile = '.\Ca_Roots.pem'
ThisWebClient.Post(PostURL,PostString)
I'm receiving the following error all the time
Error Code: -53
Error Message: The requested connection could not be opened. The Open command timed out or failed to connect. The error number was -53 which means Open Timeout or Failure error. - [SSL Error = 11]
Passed Message: The requested connection could not be opened. The Open command timed out or failed to connect
Function: NetSimple.TakeEvent
CA_Roots.pem is in the app directory as well as all 4 DLLs needed for SSL. Please help. It is urgent.
Thanks,
Alex
P.S. I'm trying both https://wstest.aviall.com/services/SOAPProcessor and https://wstest.aviall.com/services/SOAPProcessor:443 as post urls but nothing changes
I have serious problem with one request I'm trying to send to SOAP server with SSL. Still using Nettalk 5 but I was able to access secure SOAP services with it before. This is the code I use:
LOC:AuthStr = 'userid:password'
LOC:AuthStrLen = LEN(CLIP(LOC:AuthStr))
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.ConnectionKeepAlive = 0
ThisWebClient._HTTPVersion = 'HTTP/1.0'
ThisWebClient.ContentType = 'text/xml; charset=utf-8'
ThisWebClient.CanUseProxy = 0
ThisWebClient.HeaderOnly = 0
ThisWebClient.Cookie = ''
ThisWebClient.CustomHeader = ''
ThisWebClient.Referer = ''
ThisWebClient.UserAgent = 'Evision Sourcing'
ThisWebClient.AcceptEncoding = 'gzip,deflate'
ThisWebClient.Accept_ = ''
ThisWebClient.AcceptLanguage = ''
ThisWebClient.ContentLength = len (clip(PostString))
ThisWebClient.Authorization = 'Basic ' & NetBase64Encode (LOC:AuthStr, LOC:AuthStrLen)
ThisWebClient.AsyncOpenTimeOut = 1200
ThisWebClient.InActiveTimeout = 2000
ThisWebClient.SSL = 1
ThisWebClient.SSLCertificateOptions.CertificateFile = ''
ThisWebClient.SSLCertificateOptions.PrivateKeyFile = ''
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
ThisWebClient.SSLCertificateOptions.CARootFile = '.\Ca_Roots.pem'
ThisWebClient.Post(PostURL,PostString)
I'm receiving the following error all the time
Error Code: -53
Error Message: The requested connection could not be opened. The Open command timed out or failed to connect. The error number was -53 which means Open Timeout or Failure error. - [SSL Error = 11]
Passed Message: The requested connection could not be opened. The Open command timed out or failed to connect
Function: NetSimple.TakeEvent
CA_Roots.pem is in the app directory as well as all 4 DLLs needed for SSL. Please help. It is urgent.
Thanks,
Alex
P.S. I'm trying both https://wstest.aviall.com/services/SOAPProcessor and https://wstest.aviall.com/services/SOAPProcessor:443 as post urls but nothing changes
5
E-Mail - Ask For Help / Re: Sending mail over Yahoo SMTP server
« on: February 28, 2013, 08:21:14 AM »
It seems that I was using old .pem file. Replacing it
with the one from demo app does it.
Regards,
Alex
with the one from demo app does it.
Regards,
Alex
6
E-Mail - Ask For Help / Sending mail over Yahoo SMTP server
« on: February 28, 2013, 04:47:16 AM »
Hi,
I have sending email procedure using Nettalk. If I'm sending using gmail
smtp it works ok, but if I use yahoo smtp it doesn't work and I get error
message saying that Remote Certificate Failed Verification.
Yahoo SMTP settings are:
server: smtp.mail.yahoo.com
port: 465
SSL: yes
Any help is appreciated.
Alex
I have sending email procedure using Nettalk. If I'm sending using gmail
smtp it works ok, but if I use yahoo smtp it doesn't work and I get error
message saying that Remote Certificate Failed Verification.
Yahoo SMTP settings are:
server: smtp.mail.yahoo.com
port: 465
SSL: yes
Any help is appreciated.
Alex
7
Web Server - Ask For Help / Re: SSL certificates - help needed
« on: June 14, 2012, 06:13:29 AM »
Thanks Bruce,
didn't know that the order is important however it seems I have more luck than I know
Regards,
Alex
didn't know that the order is important however it seems I have more luck than I know
Regards,
Alex
8
Web Server - Ask For Help / Re: SSL certificates - help needed
« on: June 13, 2012, 01:03:46 PM »
Hi,
I solved it by renaming the .KEY file so it is named exactly the same as .CRT file and the contents of .CRT file is built from both CRT files I got.
Alex
I solved it by renaming the .KEY file so it is named exactly the same as .CRT file and the contents of .CRT file is built from both CRT files I got.
Alex
9
Web Server - Ask For Help / SSL certificates - help needed
« on: June 13, 2012, 12:52:31 PM »
Hi,
I successfully created test certificate for our app to use it as secure based on the help from Nettalk documents. Our customer wanted certificate from godaddy so we created CSR file for them (again using the batch files from Nettalk) and they sent it. Now they are sent us 2 CRT files instead of one:
1) CRT file named as our website
2) gd_bundle.CRT
when I put them together with the .KEY file generated by CSR batch file in the certificates directory of the web server and recompile to point to the new cert file nothing happens. Web site doesn't work anymore. I tried to put the second certificate file contents into the first file but still nothing.
Any help is appreciated. I don't know how to solve this issue.
Thanks,
Alex
I successfully created test certificate for our app to use it as secure based on the help from Nettalk documents. Our customer wanted certificate from godaddy so we created CSR file for them (again using the batch files from Nettalk) and they sent it. Now they are sent us 2 CRT files instead of one:
1) CRT file named as our website
2) gd_bundle.CRT
when I put them together with the .KEY file generated by CSR batch file in the certificates directory of the web server and recompile to point to the new cert file nothing happens. Web site doesn't work anymore. I tried to put the second certificate file contents into the first file but still nothing.
Any help is appreciated. I don't know how to solve this issue.
Thanks,
Alex
10
Web Server - Ask For Help / Re: Page caching and back button - NT5
« on: May 23, 2012, 09:58:44 AM »
Bruce,
I will try to pull it out. Since I'm using Oracle DB as back end in this case.
I will post some kind of example here next few days.
Thanks again,
Alex
I will try to pull it out. Since I'm using Oracle DB as back end in this case.
I will post some kind of example here next few days.
Thanks again,
Alex
11
Web Server - Ask For Help / Re: Page caching and back button - NT5
« on: May 23, 2012, 06:52:21 AM »
Hi Bruce,
thanks for your answer. Let me explain the situation. I have a simple main NetWebForm procedure which contains filter fields and search button I use for filtering of the NetWebBrowse which is included as a control on the same form. This form also contain button which calls another simple form I use to define print options and call PDF report. What my customer wants is the following - when they are on the print options form they called from the main form and hit back button they would like cached copy of the page to be displayed instead of getting the message that the page has to be reloaded.
That is all. I hope this can be useful so you can give me some advice how to handle it.
Thanks,
Alex
thanks for your answer. Let me explain the situation. I have a simple main NetWebForm procedure which contains filter fields and search button I use for filtering of the NetWebBrowse which is included as a control on the same form. This form also contain button which calls another simple form I use to define print options and call PDF report. What my customer wants is the following - when they are on the print options form they called from the main form and hit back button they would like cached copy of the page to be displayed instead of getting the message that the page has to be reloaded.
That is all. I hope this can be useful so you can give me some advice how to handle it.
Thanks,
Alex
12
Web Server - Ask For Help / Page caching and back button - NT5
« on: May 22, 2012, 10:28:20 AM »
Hi,
is there a way to bypass the reload message in IE which shows up when the you hit back button because of the fact that page generated by nettalk is by default using NO-CACHE in the page header? What I want is to allow the user to see the some cached pages when clicking on the back button instead of reloading.
Thanks,
Alex
is there a way to bypass the reload message in IE which shows up when the you hit back button because of the fact that page generated by nettalk is by default using NO-CACHE in the page header? What I want is to allow the user to see the some cached pages when clicking on the back button instead of reloading.
Thanks,
Alex
13
Web Server - Ask For Help / Re: NT and credit card processing - need help
« on: February 09, 2012, 03:45:44 AM »
Thanks Kevin,
I will try that.
Regards,
Alex
I will try that.
Regards,
Alex
14
Web Server - Ask For Help / Re: NT and credit card processing - need help
« on: February 08, 2012, 01:02:51 PM »
Kevin,
do you have an idea how to redirect to some page from polling procedure after transaction confirmation comes in?
Thanks,
Alex
do you have an idea how to redirect to some page from polling procedure after transaction confirmation comes in?
Thanks,
Alex
15
Web Server - Ask For Help / Re: Return DYNAMIC packet string - How?
« on: February 08, 2012, 12:14:07 PM »
Jeffrey,
how about using DynStr interface available in Clarion? Look at DynStr.inc in libsrc directory. You can create new dynamic string, use Cat Method to add to it and CStrRef to post get reference for passing.
Alex
how about using DynStr interface available in Clarion? Look at DynStr.inc in libsrc directory. You can create new dynamic string, use Cat Method to add to it and CStrRef to post get reference for passing.
Alex