PxPlus User Forum

Main Board => Discussions => Language => Topic started by: marcbr on July 15, 2020, 10:56:40 AM

Title: Open tcp channel
Post by: marcbr 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
Title: Re: Open tcp channel
Post by: Jeffrey Ferreira 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
Title: Re: Open tcp channel
Post by: marcbr on July 15, 2020, 11:06:22 AM
Jeff,
Yes, is a typo here, not in the program. (thick fingers and small buttons... ) ;)
Title: Re: Open tcp channel
Post by: Mike King 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.


Title: Re: Open tcp channel
Post by: marcbr on July 16, 2020, 03:00:53 AM
We are using Pxplus V16. SSL is ok I suppose.
Thank you for clarifying this.
 
Title: Re: Open tcp channel
Post by: Mike King 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.
Title: Re: Open tcp channel
Post by: marcbr 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!