Web Service Restful, Basic Authentication type, HTTPClientWorker
David McKeone
david at artsman.com
Fri Jun 15 11:37:49 EDT 2018
Do you have control over the server? Can you see the logs/headers on that side?
What’s your HTTP response status code coming back as?
__________________________________
David McKeone
Arts Management Systems Ltd.
mailto:david at artsman.com <mailto:support at artsman.com>
http://www.artsman.com <http://www.artsman.com/>
> On Jun 15, 2018, at 2:24 AM, omnislist <omnislist at 888sp.it> wrote:
>
> Hi David,
> Thanks for you response,
> the iAuthType is set to " kOW3httpAuthTypeBasic " and also other arguments are set properly in my opinion.
>
> Thanks
> Andrea Milani
>
> -----Messaggio originale-----
> Da: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Per conto di David McKeone
> Inviato: venerdì 15 giugno 2018 00:51
> A: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Oggetto: Re: Web Service Restful, Basic Authentication type, HTTPClientWorker
>
> Hi Andrea,
>
> What’s the iAuthType (5th argument to $init) set to?
>
> It should be kOW3httpAuthTypeBasic for Basic authentication.
>
> I’m not sure if the headers actually get displayed in the object instance (someone else would have to chime in with that)
>
> __________________________________
> David McKeone
> Arts Management Systems Ltd.
> mailto:david at artsman.com <mailto:support at artsman.com> http://www.artsman.com <http://www.artsman.com/>
>
>> On Jun 14, 2018, at 1:42 AM, omnislist <omnislist at 888sp.it> wrote:
>>
>> Hi,
>> I have to use web services restful which it requires “basic authentication” , so I configured an object HTTPClientWorker using its $init method, as it was described into manual.
>>
>> This is the code that I am employing ; all variables are initialized and they are used in $init method:
>>
>> Do iHeadersList.$define(iHeaderName,iHeaderValue)
>> Do iHeadersList.$add("content-type","application/json")
>> ;
>> Do
>> iRestfulObj.$protocollog.$assign(kOW3logBasic+kOW3logData+kOW3logSecur
>> eData) Do
>> iRestfulObj.$init(iURI,iHTTPMethod,iHeadersList,iContentChar,iAuthType
>> ,iUserName,iPassword) Returns %F Do iRestfulObj.$run() Returns lStatus
>> Calculate %%string as iRestfulObj.iResponse.log
>>
>> This a piece of log that I’ve obtained about object iRestfulObj:
>> Host: hub-test-888sp.satanet.it
>> Accept: */*
>> Accept-Encoding: deflate, gzip
>> content-type: application/json
>> Content-length:55
>>
>> {
>> "identifierCode": "vbfueibv",
>> "callId": "defv"
>> }
>>
>> In my opinion, iRestfulObj doesn’t produce the tag Authorization:
>> Basic *******************
>>
>> Is anyone able to use HTTPClientWorker with “basic authentication”?
>>
>> Thanks
>>
>> Andrea Milani
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com Start a
>> new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list