Good day. We are trying to connect to a HTTPS: address for the first time and are receiving the below messages in the HTTPAPI log. WSDL2RPG programs (Tools/400 Freeware) are running on iSeries OS V7R3M0. Programs work if going to a HTTP: address. Does the SetError message mean that https is not supported? Or are there settings somewhere needing to be changed?
Regards, David
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V7R3M0
New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
SetError() #1: Only the http protocol is available!
WSDL2RPG Ver V1.12 released 2010-08-06
WSDL2RPG (eXpat error): (3) no element found
received at line: 1
at column: 0
from procedure: WSDL2R97_XMLSAXParser_endParse
and statement: 105600
Message "Only the http protocolis available!" in log
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: Message "Only the http protocolis available!" in log
You are using a version of HTTPAPI that is 11 years out-of-date. Please consider updating it.
It sounds to me like you're trying to use a URL that begins with https://? This is fully supported in HTTPAPI, but when you compiled it (back in 2010!) you did not compile support for SSL into the product.
Please download the latest version and compile it with SSL support included.
You can find/download the latest version from here:
https://www.scottklement.com/httpapi/
It sounds to me like you're trying to use a URL that begins with https://? This is fully supported in HTTPAPI, but when you compiled it (back in 2010!) you did not compile support for SSL into the product.
Please download the latest version and compile it with SSL support included.
You can find/download the latest version from here:
https://www.scottklement.com/httpapi/
Re: Message "Only the http protocolis available!" in log
Thanks Scott. We do have a later version of HTTPAPI downloaded but have not retroed all our programs to use it. Will give that a go - appreciate the fast response
David
David
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: Message "Only the http protocolis available!" in log
You shouldn't have to do anything special to make them use it? Just make sure it's in your library list (and the old one is not) and it should "just work".
Re: Message "Only the http protocolis available!" in log
Hello,
I have the same error "Only the http protocolis available!" in log. I have set SSL support to Y during installation? Is the digital certificate needs to be setup as well? Please help and thank you in advance.
I have the same error "Only the http protocolis available!" in log. I have set SSL support to Y during installation? Is the digital certificate needs to be setup as well? Please help and thank you in advance.
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: Message "Only the http protocolis available!" in log
If your digital certificates aren't set up you'll get a completely different message.
This particular message means that you didn't compile support for https into HTTPAPI. If you truly recompiled HTTPAPI with support for SSL enabled, then perhaps you have a different copy of HTTPAPI in your library list?