Open tcp channel

Started by marcbr, July 15, 2020, 10:56:40 AM

Previous topic - Next topic

marcbr

Hello list,
We need to send soap notification messages to a webservice.
The url is like this :  https:// someserver:port/communicationservices. 
*plus/web/request returns  'cannot contact the host".
When trying to  open (chan)"[TCP]someserver;port/communictionservices;secure  we get a err 10, illegal pathname
When ommitting the path after ...port  the tcp connection is ok, but the service at the other side does'nt receive anything.

On the centos server the curl command  curl -k https://someserver:port/communicationservice returns a good answer.
Can someone help us with this ?
Thanks a lot!
Marc

Jeffrey Ferreira

Hi Mark
i'm assuming that the "a" missing in communication is just a typo when you posted to this thread correct?
jeff

marcbr

Jeff,
Yes, is a typo here, not in the program. (thick fingers and small buttons... ) ;)

Mike King

You cannot just open a TCP connection with a URL.  To access a URL you open a TCP connection to a server then format and send a request which identifies the URL and potentially the data.

PxPlus however does provide a utility that handles this.  Please check out *plus/web/request at:
https://manual.pvxplus.com/page/Web%20Services/Overview.htm#submitting

Also make sure your PxPlus is reasonably current as over the past few years there have been many changes in SSL.


Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

marcbr

We are using Pxplus V16. SSL is ok I suppose.
Thank you for clarifying this.

Mike King

Yes, that should have no problem. 

Some of older versions of PxPlus came out before TLS1.2 which is now pretty much mandated by most sites.  Also many sites require SNI support which allows a single TCP/IP address to support multiple site names and is required for certificate validation.  Support for SNI was added in v14.

If you find your site requires TLS1.3, whose official specification was only finalized in August 2018, you will need PxPlus 2020 (v17) as that was the first release after TLS 1.3 was supported on CENTOS, DEBIAN and many other OS'es.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

marcbr

Meanwhile everything is working fine with *plus/web/request.
Thanks for all the good info Mike!
Nice weekend!