Examples of BodyType


Examples of org.xmlsoap.schemas.soap.envelope.BodyType

        {
            String emailId = email.getId();
            doomedItems.addNewItemId().setId(emailId);
            LOG.debug("Preparing to delete email item: {}", emailId);
        }
        BodyType response = sendRequest(request);
        ResponseMessageType[] responses =
                response.getDeleteItemResponse().getResponseMessages().getDeleteItemResponseMessageArray();
        for (ResponseMessageType resp : responses)
        {
            if (resp.getResponseCode() != ResponseCodeType.NO_ERROR)
            {
                LOG.debug(response.toString());
                throw new FailedToDeleteMessage(
                        "ResponseCode some sort of error: " + resp.getResponseCode());
            }
        }
    }
View Full Code Here

Examples of org.xmlsoap.schemas.soap.envelope.BodyType

            if (email.getBcc() != null)
            {
                exchangeMessage.addNewBccRecipients().addNewMailbox().setEmailAddress(email.getBcc());
            }
        }
        BodyType response = sendRequest(request);
        ItemInfoResponseMessageType[] responses =
                response.getCreateItemResponse().getResponseMessages().getCreateItemResponseMessageArray();
        if (responses.length != emails.size())
        {
            LOG.debug(response.toString());
            throw new FailedToCreateMessage(
                    "There should have been " + emails.size() + " response message to createItem");
        }
        for (ItemInfoResponseMessageType resp : responses)
        {
            if (resp.getResponseCode() != ResponseCodeType.NO_ERROR)
            {
                LOG.debug(response.toString());
                throw new FailedToCreateMessage(
                        "ResponseCode some sort of error: " + resp.getResponseCode());
            }
        }
    }
View Full Code Here

Examples of org.xmlsoap.schemas.soap.envelope.BodyType

        ItemResponseShapeType itemShape = findItem.addNewItemShape();
        itemShape.setBaseShape(DefaultShapeNamesType.DEFAULT);
        // I tried to use ID_ONLY and add some AdditionalProperties, but the
        // schema appears to be screwy and not have FieldURI in there correctly
        findItem.addNewParentFolderIds().addNewDistinguishedFolderId().setId(parent);
        BodyType response = sendRequest(request);
        FindItemResponseMessageType responseMessage =
                response.getFindItemResponse().getResponseMessages().getFindItemResponseMessageArray()[0];
        if (responseMessage.getResponseCode() != ResponseCodeType.NO_ERROR)
        {
            throw new FailedToFindMessage(
                    "ResponseCode some sort of error: " + responseMessage.getResponseCode());
        }
View Full Code Here

Examples of org.xmlsoap.schemas.soap.envelope.BodyType

        {
            ItemIdType itemId = itemIds.addNewItemId();
            itemId.setId(messageId.getId());
            itemId.setChangeKey(messageId.getChangeKey());
        }
        BodyType response = sendRequest(request);
        ItemInfoResponseMessageType[] responses =
                response.getMoveItemResponse().getResponseMessages().getMoveItemResponseMessageArray();
        if (responses.length != messageIds.size())
        {
            throw new FailedToMoveMessage("There should have been 1 response message to moveItem");
        }
View Full Code Here

Examples of org.xmlsoap.schemas.soap.envelope.BodyType

     * @throws ServiceCallException if there was an error extracting the body.
     * The error will be logged.
     */
    private BodyType getSoapBody(final EnvelopeDocument response) throws ServiceCallException
    {
        BodyType body = response.getEnvelope().getBody();
        if (body != null)
        {
            return body;
        }
        else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.