Hi,
My web service client is generated from a WSDL. The WSDL has a field of type boolean. While invoking the webservices (WS), the WS returns
SOAP error saying that it cannot parse 1 to boolean type of true or false. I checked to ensure and confirmed that the field in the
java generated object from the WSDL is of type Boolean. After some debugging, I found that the boolean value is translated to 1 or 0 by jax-rpc in the SOAP message.
Have anyone encountered this problem before and what's the workaround or solution for this? I appreciated the response!
Error message is as below.
; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: VEN-FORMATTER-1011: Cannot parse '1' as a boolean (must be "true" or "false")
VEN-FORMATTER-1011: Cannot parse '1' as a boolean (must be "true" or "false")
VEN-FORMATTER-1011: Cannot parse '1' as a boolean (must be "true" or "false")
; nested exception is: VEN-FORMATTER-1011: Cannot parse '1' as a boolean (must be "true" or "false")
VEN-FORMATTER-1011: Cannot parse '1' as a boolean (must be "true" or "false")
VEN-FORMATTER-1011: Cannot parse '1' as a boolean (must be "true" or "false")
WSDL snippet:
<xsd:element minOccurs="0" name="Comp1Question" type="xsd:boolean" />