Skip to content

Queue: createMessage should throw for null message instead of submitting #121

Description

@joostdenijs

Dev estimate: 1
Test estimate: 1

Moved from private repository.

This code:
QueueContract service = createService();
service.createMessage("foo", null);
submits this XML to the server:

But the server doesn't like that:
InvalidXmlDocument: XML specified is not syntactically valid.
LineNumber: 0
LinePosition: 0
Would be nice to throw immediately instead of requiring the user to parse through the ServiceException themselves.

Similar issue for updateMessage when PopReciept is null: popreceiptquery parameter is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions