Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Calling .Net HttpHandler from Java - "Bad Request" Returned

  1. #1
    Junior Member
    Join Date
    May 2011
    Thanked 0 Times in 0 Posts

    Question Calling .Net HttpHandler from Java - "Bad Request" Returned

    Hi Folks,

    I am calling a .Net HttpHandler deployed on IIS that is used to access documents on SharePoint.

    I am using the apache HttpClient (org.apache.commons.httpclient.HttpClient) and GetMethod to call Handler, see code snippets below.
    I am also setting authenitication credentials for NTLM authentication.

    client = new HttpClient();
    method = new GetMethod(URL to handler)
    String response = method.getResponseBodyAsString();

    I am using TCPMon as proxy to see request going out and response comeing back.
    Request URL and parameters look correct, howvere response is "Bad Request"
    When I look in logs for IIS, I can't see request in log.
    If it take request and parameters and paste in browser it hits handler as expected, and can see request in IIS logs.
    Any ideas


  2. #2
    Junior Member
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    Default Re: Calling .Net HttpHandler from Java - "Bad Request" Returned

    SharePoint is defined as Microsoft proprietary web application platform that plays the role of a multipurpose tool that can fulfill all types of general web requirement of any company. It is seriously integrated with Microsoft suite tools and also offers users with an interface which is as same as the Microsoft Office.

    For More Info :- SharePoint Development


Similar Threads

  1. Replies: 6
    Last Post: November 12th, 2010, 03:40 AM
  2. Java says:"Hello World". I say:"It works!"
    By Davidovic in forum Member Introductions
    Replies: 4
    Last Post: June 29th, 2010, 07:13 AM
  3. Replies: 1
    Last Post: March 31st, 2010, 09:42 PM
  4. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 07:35 AM
  5. Replies: 4
    Last Post: August 13th, 2009, 05:54 AM