none
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="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <FolderChanges>
        <typ:FolderChange>
          <typ:FolderId Id="AAAXAHRlc3QxQHlhc2h0cmFpbmVlLmNvLmluAC4AAAAAAOUxt/E4cPFFscHIarzha7kBANq9sJLDTu9LmKCJQxRa0fIAicKPRUwAAA==" ChangeKey="AgAAABYAAADavbCSw07vS5igiUMUWtHyAInCknmz"/>
          <typ:Updates>
            <typ:SetFolderField>
              <typ:Path FieldURI="folder:DisplayName" xsi:type="typ:PathToUnindexedFieldType"/>
              <typ:CalendarFolder>
                <typ:DisplayName>updateM</typ:DisplayName>
              </typ:CalendarFolder>
            </typ:SetFolderField>
          </typ:Updates>
        </typ:FolderChange>
      </FolderChanges>
    </UpdateFolder>

    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(Utils.java:446)
        at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
        at com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.updateFolder(ExchangeWebServiceStub.java:3980)
        at samples.folder.UpdateCalendarFolder.updateCalendarFolder(UpdateCalendarFolder.java:132)
        at samples.folder.UpdateCalendarFolder.main(UpdateCalendarFolder.java:57)

    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,
    http://diliptechnotes.blogspot.com/
    http://dilipinexchange.blogspot.com/
    Friday, March 11, 2011 7:39 AM

Answers

  • 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..

    http://diliptechnotes.blogspot.com/2011/03/exchange-web-services-java-stub.html

    let me know in case of any issues..


    Dilip Kumar Gupta,
    http://diliptechnotes.blogspot.com/
    http://dilipinexchange.blogspot.com/
    Friday, April 15, 2011 12:29 PM