[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ftpapi] HTTPAPI returns 36: Server did not ask for authentication



Hi Scott,

 

I am using the latest version of HTTPAPI and my web service call is

returning 36: Server did not ask for authentication!

 

Used Libraries:

LIBHTTP     USR       ONTW        LIBHTTP  Ver 1.39   Released 20180309

WSDL2RPG    USR       ONTW        WSDL2RPG Ver 1.16.6 Released 20180327

 

Wsdl: https://wsbexpress.dhl.com:443/sndpt/glDHLExpressTrack

Request properties

UserName: ********

Password: ********

WSS-Password Type: Passwordtext

 

 

 

*STUB WS0035

 

*===========================================

*  Generated by WSDL2RPG 1.16.6 / 27.02.2018

*  Built on Jun 8, 2018 (11:40:25)         

*  Built for V7R3M0                         

*  Based on WS_SRV 1.16.6 - 27.02.2018     

*===========================================

 

gblDHLExpressTrack_Port_supplyLoginData

 

     // Set o_user and o_password here and remove the error message.    

     // Return WSDL_SUCCESS to let the caller know that user and        

     // password have been set, otherwise return WSDL_ERROR.            

                                                                         

     clear USR0048;                                                      

     USR00481 = f_this();                                               

   //AppMsg_sendCancelMsg(AppMsg_newError('USR0048': USR0048));         

   //return WSDL_ERROR;                                                 

                                                                         

     o_user     = '**********';                                              

     o_password = '**********';                                       

     return        WSDL_SUCCESS;      

 

 

*PGM  WS0035T     My Test Program

 

* ==========================================

*  Generated by WSDL2RPG 1.16.6 / 27.02.2018

*  Built on Jun 8, 2018 (11:44:40)         

*  Built for V7R3M0                        

*  Based on WS_PGM 1.16.6 - 27.02.2018     

* ==========================================

 

// Enable preemptive authetication                                      

// 1. parameter: WSDL_AUTH_BASIC or WSDL_AUTH_MD5_DIGEST                

// 2. parameter: (optional) cTrue for proxy authentication              

//                          cFalse for server authentication (default)

  

   gblDHLExpressTrack_Port_setPreemptiveAuthentication(                 

      WSDL_AUTH_BASIC);                                                 

                           

 

Can you see what I am doing wrong?

I appreciate any help you can give!

 

Thank you,

Rob Bezouwen 

                                                                                

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi