rafwys
9 years agoOccasional Visitor
Bug: SoapUI wrong validates the numerical value of the dot for type int
Platform OS: Windows 8.1
SoapUI release version : 5.1.2, 5.2.0, 5.2.1
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
SoapUI wrong validates the numerical value of dot if in the context of WSDL-defined default type int.
example:
<tem:InstitutionType>8100.</tem:InstitutionType>
WSDL contect:
<xs:element name="InstitutionType" type="xs:int" minOccurs="0"/>
Request validated, and should not. As a result, I get the response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:DeserializationFailed</faultcode> <faultstring xml:lang="pl-PL">The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:InstitutionType. The InnerException message was 'There was an error deserializing the object of type System.Int32. The value '8100.' cannot be parsed as the type 'Int32'.'. Please see InnerException for more details.</faultstring> </s:Fault> </s:Body> </s:Envelope>