web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Codeunit 1297 - SendRequestAndReadResponse

(0) ShareShare
ReportReport
Posted on by 260

Dear all!

The case : I am having to do a post request using http method.

What i need to know is , when exactly, does the post request in the sendrequestandreadresponse procedure, occurs?

Because there are times that i am getting a timeout error in the getwebresponse , which is called by getresponse procedure ( codeunit 1299) , and i would like to clarify that this timeout occurs after my post request.Which means that my post request has successfully occured and the problem is with the response that i am getting from the other side.

Thank you in advance!

I have the same question (0)
  • DAnny3211 Profile Picture
    11,397 on at

    hi

    use api rest in nav

    danieleincalza.blogspot.com/.../dynamics-nav-2018-my-interface-with.html

    DANiele

  • AntonisK Profile Picture
    260 on at

    I would like to keep using this codeunit so do you have any clue about the procedure that i mentionted?

  • DAnny3211 Profile Picture
    11,397 on at

    Hi

    do you have any gateways between nav and the other system?

    this may not be your problem

    DAniele

  • AntonisK Profile Picture
    260 on at

    Danielle , first of all thanks for your responses.

    I think that you have misunderstood the case.

    The only thing that i need , is to clarify , when does the actual send request occurs in the code.

    Inside the SendRequestAndReadResponse Procedure , the code only checks for the response and i cant find anywhere the lines which are dedicated in the send request

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    I don't understand what you mean by Lines?

  • AntonisK Profile Picture
    260 on at

    I think that i managed to understand whats going on.

    I am getting a timeout error in the httpwebrequest class, getresponse method.

    Searching through the code i found out that i am basically getting the error in this line.

    https://prnt.sc/GGI2KkyiVsZp

    Since i do not know how .net framework works , it took me some time to realize between a webrequest object and webresponse object.

    Now, when it comes to the timeout error itself , have you ever experience that?

    I believe its because the webresponse its not disposed correctly..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans