Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8382781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:00:26+00:00 2026-06-09T17:00:26+00:00

I developed a Java interface that connects to a Exchange Web Services and it

  • 0

I developed a Java interface that connects to a Exchange Web Services and it works until I perform request.

My problem is that the answers are always empty. For example, if I send the following query to a 2007 exchange server:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\">"
<soap:Header>
<t:RequestServerVersion Version=\"Exchange2007\"/>"
</soap:Header>"
<soap:Body>"
  <FindItem xmlns=\"http://schemas.microsoft.com/exchange/services/2006/messages\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" Traversal=\"Shallow\">"
    <ItemShape>"
      <t:BaseShape>IdOnly</t:BaseShape>"
    </ItemShape>
    <ParentFolderIds>
      <t:FolderId Id="inbox" />
    </ParentFolderIds>"
  </FindItem>
</soap:Body>
</soap:Envelope>

The answer I get at the end is a simple normal HTTP packet without any error. Here is its contents (I did some System.out to output this):

################ANSWER################
#Header : Date: Thu, 09 Aug 2012 09:36:53 GMT#
#Header : Server: Microsoft-IIS/6.0#
#Header : X-Powered-By: ASP.NET#
#Header : X-AspNet-Version: 2.0.50727#
#Header : Cache-Control: private#
#Header : Content-Length: 0#
################DATA################
Data : 

As you can see, the length of the content is empty. It seems that the server accepts the request, do something with it, and replies an empty result.

Do you have an idea why?

Thx!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:00:27+00:00Added an answer on June 9, 2026 at 5:00 pm

    I found the mighty trick that solves everything. The most important and ONLY REQUIRED header of the HTTP post message that you send to the server is the Content-Type value. Every other header is optional and i’m not even sure they are used for anything. The Content-Type is the key that unlocks everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed a Java desktop application in eclipse IDE.I need to include web view
I developed a java web application which contains Wallpapers, there is like button for
I have developed a Java server using Eclipse that accepts TCP socket connection from
I have developed a Java program that will count the number of files in
I have developed various Java EE web-applications in Netbeans by selecting webapplication as the
I have developed a java swing client-server application. The server has many services like
I have developed a Java aplication that is currently being run by double-clicking on
I'm developing (another) java web framework for personal use, and in addition to that
I've developed an interface that allows a user to load and manipulate data. The
I am currently working on some older java code that was developed without App

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.