PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Open tcp channel  (Read 1533 times)

marcbr

  • Member
  • **
  • Posts: 12
    • View Profile
Open tcp channel
« on: July 15, 2020, 10:56:40 AM »
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

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Open tcp channel
« Reply #1 on: July 15, 2020, 11:01:08 AM »
Hi Mark
i'm assuming that the "a" missing in communication is just a typo when you posted to this thread correct?
jeff

marcbr

  • Member
  • **
  • Posts: 12
    • View Profile
Re: Open tcp channel
« Reply #2 on: July 15, 2020, 11:06:22 AM »
Jeff,
Yes, is a typo here, not in the program. (thick fingers and small buttons... ) ;)

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Open tcp channel
« Reply #3 on: July 15, 2020, 11:14:53 AM »
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
eMail: mike.king@bbsysco.com

marcbr

  • Member
  • **
  • Posts: 12
    • View Profile
Re: Open tcp channel
« Reply #4 on: July 16, 2020, 03:00:53 AM »
We are using Pxplus V16. SSL is ok I suppose.
Thank you for clarifying this.
 

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Open tcp channel
« Reply #5 on: July 16, 2020, 09:56:48 AM »
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
eMail: mike.king@bbsysco.com

marcbr

  • Member
  • **
  • Posts: 12
    • View Profile
Re: Open tcp channel
« Reply #6 on: July 16, 2020, 10:19:05 AM »
Meanwhile everything is working fine with *plus/web/request.
Thanks for all the good info Mike!
Nice weekend!