- Jun 6, 2020
- 11,559
- 4,422
Hello colleagues
I have created a REST API with Visual Studio 2022, which connects to a local SQL Server database and creates a JSON response from the information, when executed locally, my browser looks like this in the following image:
I want to consume this REST API from B4A, I do it in the android emulator but even though my REST API is working perfectly it shows me an error saying that there is no local connection at the localhost address (127.0.0.1:5056 ).
View B4A log image
Here is my B4A code:
B4X:
I have created a REST API with Visual Studio 2022, which connects to a local SQL Server database and creates a JSON response from the information, when executed locally, my browser looks like this in the following image:
برای دیدن تصاویر باید ثبت نام کنید
I want to consume this REST API from B4A, I do it in the android emulator but even though my REST API is working perfectly it shows me an error saying that there is no local connection at the localhost address (127.0.0.1:5056 ).
View B4A log image
برای دیدن تصاویر باید ثبت نام کنید
Here is my B4A code:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید