Beppe Magistro 1 Posted November 24, 2021 Hi All, I have a D11 small fmx app consuming a Soap web service authorized by user/password , if i run on WIndows all is working good, if i try to run on Android i Have this error : Project Client_Wms.apk raised exception class ESOAPHTTPException with message 'Unauthorized (401) - 'http:/masterdata/Artikel.asmx''. this is the code : indirizzo:= THTTPRIO.Create(nil); indirizzo.HTTPWebNode.UserName := 'user'; indirizzo.HTTPWebNode.Password := 'password'; indirizzo.HTTPWebNode.UseDefaultCredentials :=true; art := GetartikelSoap(false,'http:/masterdata/Artikel.asmx',indirizzo); APP_ART:= art.getDBValue('ARTIKEL','ARTIKEL','EANCODE','8007057433524'); in the Android manifest i added : android:usesCleartextTraffic="true" Thanks in Advance Share this post Link to post
Attila Kovacs 629 Posted November 24, 2021 I don't know, first of all, what is this? "http:/masterdata/Artikel.asmx" this is not an URL. Is it an example with typo? I'd try to change http to https, hopefully your endpoint supports https. (which will raise further questions/problems but that will be the next step) Share this post Link to post
Beppe Magistro 1 Posted November 24, 2021 (edited) the url is an internal one and is working if i run on windows , i tried to modify to https://masterdata/Artikel.asmx" but the connection is refused by the server under windows too. Edited November 24, 2021 by Beppe Magistro Share this post Link to post
Attila Kovacs 629 Posted November 24, 2021 And are you sure your android device is knowing that netbios name? What about using an IP instead? Share this post Link to post
Beppe Magistro 1 Posted November 24, 2021 yes same result 'http://10.11.10.50/APplusTest7/masterdata/Artikel.asmx' result : Project Client_Wms.apk raised exception class ESOAPHTTPException with message 'Unauthorized (401) - 'http://10.11.10.50/APplusTest7/masterdata/Artikel.asmx''. Share this post Link to post
pcplayer99 11 Posted November 24, 2021 In good old days, my manifest like this: <application android:persistent="%persistent%" android:restoreAnyVersion="%restoreAnyVersion%" android:label="%label%" android:debuggable="%debuggable%" android:largeHeap="%largeHeap%" android:icon="%icon%" android:theme="%theme%" android:hardwareAccelerated="%hardwareAccelerated%" android:resizeableActivity="false" android:usesCleartextTraffic="true"> And it can access web server through "HTTP" in Android. but Android 11, I don't know. Share this post Link to post
Beppe Magistro 1 Posted November 24, 2021 in manifest i have already added this : android:usesCleartextTraffic="true"> Share this post Link to post