Page 2 of 2

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Posted: Fri Jul 19, 2013 10:07 pm
by Anton Artyukh5836028

Jeremy please, check API for service which you try to use.

I think you have problem with format of request.


javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Posted: Mon Jul 22, 2013 10:08 am
by jeremy Henry

Hi,

thank you for your reply. I am calling the same service in SOAP UI and it works well. Here is below the code i am using, except that i am using different username/password than "xxxxx.." obviously.

What am i doing wrong in Appery?

thank you,

___________________________________________________________

Endpoint: https://services.klm.com/MetaSearchSe...

xml:

Code: Select all

                                 xxxxxx 
                                 xxxxxxx 

      RH 
      <!--Optional:-- 
      en 

         2013-11-10 
         JFK 
         AMS 

         2013-11-15 
         AMS 
         JFK 

      <!--Optional:--

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Posted: Mon Jul 22, 2013 11:04 am
by Kateryna Grynko

Hi Jeremy,

Could you please place your code in tags "pre" and "code"? This is not readable otherwise.


javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Posted: Mon Jul 22, 2013 11:51 am
by jeremy Henry

Hi Katya,

here it is. sorry.

Image


javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Posted: Mon Jul 22, 2013 5:01 pm
by Maryna Brodina

Hello! There is a SOAP request on your screenshot. In Appery.io you need to use REST requests http://docs.appery.io/getting-started/. In fact here is how your request from Appery.io suppose to look like codehttps:&#47;&#47;services&#46;klm&#46;com&#47;MetaSearchService&#47;MetaSearchService_v1&#46;asmx?Username=xxxxx&Password=xxxxxx&KLM_MetaSearchParty=RH&DepartureDateTime=2013-09-09&OriginLocation=AMS&DestinationLocation=JFK&AirTraveler=1&PriceRequestInformation=Economy&KLM_Lang=en/code.
You would need to check is http://klm.com/ has API. Another way is to try to create ajax request and form correct SOAP request (form correct xml with needed parameters), but no guarantee it will work...


javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Posted: Tue Jul 23, 2013 5:53 pm
by jeremy Henry

hi, thanks. I knew indeed, but have been confused by the ability to choose xml.
Thank you for your time and clear.