Not so much a "bug" in CXF but maybe an issue with JAXB.   JAXB, by default, I 
think just calls "Integer.parseInt(...)" for this type of thing so whatever it 
returns gets stuck in.    

If you want full validation of the types and message, you would need to turn 
on the schema validation. That should detect and flag these types of things.

Dan


On Thursday, June 09, 2011 2:26:37 PM Sonam Nepali wrote:
> Hi
> 
> I sent a soap request using SOAP UI as in " <arg0>1+2</arg0>" which would
> be marshaled into a "int" type on server side.
> 
> I checked the inbound request on the server side and I see the request as
> being "1+2".  In the webservice method, the I printed method argument and
> the int value is  "12".  I see a string concatenation of "1" + "2" to give
> "12".  I expected some kind of a Number format exception or something
> because the request didn't contain a numeric value.  Is this a bug?
> 
> Thanks
> 
> -Sonam

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to