SOAP/REST issue with SSL

Moderator: crythias

Post Reply
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

SOAP/REST issue with SSL

Post by kruegerM »

6.0-.12
I have a perl SOAP script for updating tickets. It works in my test environment, but in production I get the error:
500 Can't connect to SERVER.CMPNY.org:443 at bin/isc.SoapTest.pl line 40.
That line of the script is:
my $SOAPObject = SOAP::Lite
->uri($NameSpace)
->proxy($URL)
->$Operation($SOAPData);


After doing some chasing, I have found out the production server has a location redirect to force the HTTPS url if someone enters HTTP. The HTTPSForceRedirect in OTRS Sys Cfg is enabled, however our server group added the redirect on the server as well.

I have the suspicion the server's redirect is what's causing the HTTP entry in the perl script for the server URL to error out trying to use HTTPS - - but I'm not positive this is the issue. The url line of the script is:
my $URL = 'http: //SERVER.CMPNY.org/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnector';
This happens if I use the REST connector as well.

Has anyone run into this? I'd like to go to our server group to have them remove the redirect, but they'll want "proof". If anyone can confirm my suspicions it would be great, OR if anyone knows of how I can fix the issue programaticly, that also would be awesome.

Thank you for any assistance you can provide! :)

M
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SOAP/REST issue with SSL

Post by jojo »

just use https in your request
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

Re: SOAP/REST issue with SSL

Post by kruegerM »

I get the same error:

500 Can't connect to SERVER.CMPNY.org:443 at /opt/otrs/bin/Login-soap.pl
Post Reply