• Pratik Chauhan
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Below is code/method from sample project:

 private String invokeRestAPI(String endpointURL)
 {
      WebClient wc = buildWebClient();
       return wc.DownloadString(endpointURL);
  }

In above code "wc.DownloadString(endpointURL)" gives error "The remote server returned an error: (400) Bad Request." while returning result. This problem exist when i do bulk update of records(1000 +).

Can any buddy help me out to solve this out?? Is there any time out problem?? Or any other configurational change needed to sole it out???

 
Below is code/method from sample project:

 private String invokeRestAPI(String endpointURL)
 {
      WebClient wc = buildWebClient();
       return wc.DownloadString(endpointURL);
  }

In above code "wc.DownloadString(endpointURL)" gives error "The remote server returned an error: (400) Bad Request." while returning result. This problem exist when i do bulk update of records(1000 +).

Can any buddy help me out to solve this out?? Is there any time out problem?? Or any other configurational change needed to sole it out???