History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-679
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Dan Everton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XFire

Should support validation on mashalling objects when using JAXB

Created: 28/Sep/06 09:03 PM   Updated: 01/Oct/06 11:32 PM
Component/s: JAXB 2.0
Affects Version/s: 1.2.1
Fix Version/s: 1.2.2

Time Tracking:
Not Specified

File Attachments: 1. Text File xfire-jaxb2-validation.patch (7 kb)



 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Everton - 01/Oct/06 06:31 PM
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.


Dan Everton - 01/Oct/06 11:12 PM
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.


Dan Diephouse - 01/Oct/06 11:32 PM
Thanks, applied