I have the following problem. I want to make web service, which have a lot of parameters for input. Some of them are Double type. The thing is that some of doubles are not necessary and can be passed to my service as empty tags, like
<param xsi:type="xsd:double"></param>
WebLogic, therefore, before turning to my code tries to parse that double and I get
<faultstring>empty String</faultstring>
response with exception in it
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
at java.lang.Double.parseDouble(Double.java:540)
So my main question is, how can I get such empty tags as null into Double variable? Or how can I specify that empty value before WebLogic tries to parse it? Thank you in advance!