XFire

Should support validation on mashalling objects when using JAXB

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.1
  • Fix Version/s: 1.2.2
  • Component/s: JAXB 2.0
  • Labels:
    None
  • Number of attachments :
    1

Description

XFire using JAXB 2.0 currently only supports validation of incoming XML messages. It would be good to also support validation of outgoing messages as well.

Activity

Hide
Dan Everton added a comment -

The major use case for this would be using XFire to talk to another web service. Basically checking that you've set everything that needs to be set before sending the message to the server.

There's also a use for this on the server side. Generally you should be strict in what you output and generous in what you accept. So validating outgoing messages ensures you're sending valid content to your clients.

Show
Dan Everton added a comment - The major use case for this would be using XFire to talk to another web service. Basically checking that you've set everything that needs to be set before sending the message to the server. There's also a use for this on the server side. Generally you should be strict in what you output and generous in what you accept. So validating outgoing messages ensures you're sending valid content to your clients.
Hide
Dan Everton added a comment -

The attached patch enables validation of objects marshalled with JAXB. It adds two new settings to JaxbType: ENABLE_REQUEST_VALIDATION to enable request only validation and ENABLE_RESPONSE_VALIDATION to enable response only validation. The property ENABLE_VALDIATION turns on validation for both request and response.

The patch is generated against XFire 1.2.1 as I still can't seem to get Subversion to work through a proxy.

Show
Dan Everton added a comment - The attached patch enables validation of objects marshalled with JAXB. It adds two new settings to JaxbType: ENABLE_REQUEST_VALIDATION to enable request only validation and ENABLE_RESPONSE_VALIDATION to enable response only validation. The property ENABLE_VALDIATION turns on validation for both request and response. The patch is generated against XFire 1.2.1 as I still can't seem to get Subversion to work through a proxy.
Hide
Dan Diephouse added a comment -

Thanks, applied

Show
Dan Diephouse added a comment - Thanks, applied

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: