[ http://jira.codehaus.org/browse/XFIRE-635?page=all ]
Dan Diephouse closed XFIRE-635.
-------------------------------
Resolution: Won't Fix
You can't use XMLBeans generated classes with the aegis binding, which is why
you're having problems with service 1. Which would explain your marshalling
problems...
> Parse exception on empty elements of type java.lang.Integer
> -----------------------------------------------------------
>
> Key: XFIRE-635
> URL: http://jira.codehaus.org/browse/XFIRE-635
> Project: XFire
> Issue Type: Sub-task
> Affects Versions: 1.0, 1.1.2
> Environment: java 1.4
> Reporter: Jakub Mendys
> Assigned To: Dan Diephouse
> Priority: Minor
> Fix For: 1.2.3
>
> Attachments: test.zip
>
>
> When java.lang.Integer is used as a method parameter in your web service
> implementation then xFire will not accept null values nor empty element.
> Instead xFire will try to parse content of next elements and raise an
> exception. See test case:
> Under link http://jmendys.com/test.zip you will find a test case to reproduce
> the problem
> The zip contains folder 'test' which is an exploded war ready to deploy. After
> deployment is exposes 2 services:
> * XFireTestService1 (without xmlbean)
> * XFireTestService2 (with xmlbean)
> When you send a following request (to any of those):
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Header/>
> <SOAP-ENV:Body>
> <getBasket xmlns="http://www.roche.com/drugsafety">
> <referenceNo>STRINGA</referenceNo>
> <basketVersion></basketVersion>
> <medDRAVersionName>STRINGB</medDRAVersionName>
> </getBasket>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> you will get something like this:
> org.apache.commons.httpclient.HttpException :
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>For
> input string: "STRINGB"</faultstring></soap:Fault></soap:Body></soap:Envelope>
> And only if you provide valid and non null integer in basketVersion (e.g.
> <basketVersion>0</basketVersion>) the request will be processed correctly.
> Plaese note that xFire tries to parse STRINGB which is in next element as an
> value for the integer type element.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email