EWS operations for Exchange 2007 server RRS feed

  • Question

  • Hi All,

    I am preparing a POC of EWS (using JAVA) in which I would need to complete all folder operations like,

    • Create Folder
    • Update Folder (Rename)
    • Delete Folder
    • Retrieve Folder

    I am able to prepare all features except 'Update folder ' functionality.. The error occurs when I perform update operation on web service instance. The code line is,

    UpdateFolderResponseDocument ufUpdateFolderResponseDocument = EWS.updateFolder(updateDocument,null,null,null,null);

    and the XML document which is going to update is,

    <UpdateFolder xmlns="" xmlns:typ="" xmlns:xsi="">
          <typ:FolderId Id="AAAXAHRlc3QxQHlhc2h0cmFpbmVlLmNvLmluAC4AAAAAAOUxt/E4cPFFscHIarzha7kBANq9sJLDTu9LmKCJQxRa0fIAicKPRUwAAA==" ChangeKey="AgAAABYAAADavbCSw07vS5igiUMUWtHyAInCknmz"/>
              <typ:Path FieldURI="folder:DisplayName" xsi:type="typ:PathToUnindexedFieldType"/>

    and I am getting following error while updating folder display name. That is,

    org.apache.axis2.AxisFault: An internal server error occurred.
        at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
        at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
        at org.apache.axis2.description.OutInAxisOperationClient.send(
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
        at org.apache.axis2.client.OperationClient.execute(
        at samples.folder.UpdateCalendarFolder.updateCalendarFolder(
        at samples.folder.UpdateCalendarFolder.main(

    I need your help to know the possible causes of this issue... whether this is related to incorrect request formation or Server configurations.





    Dilip Kumar Gupta,
    Friday, March 11, 2011 7:39 AM


  • I am replying for my own query which is basically occurs when your stub is not well formed or the request you make for exchange server is not valid. I have written a post which is for web services stub creation and describes all the necessary steps.

    Please go through the following link for the same..

    let me know in case of any issues..

    Dilip Kumar Gupta,
    Friday, April 15, 2011 12:29 PM