Forum Discussion

fastbill's avatar
fastbill
Contributor
13 years ago

Unmarshalling Error

When a "Not SOAP Fault" assertion fails, soapUI often returns this response:
      <soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'.</faultstring>
</soap:Fault>

Unfortunately, it gives no indication where the missing integer occurs in the request message.

It would be extremely helpful if soapUI displayed the request line number and character position where it has detected this fault.
  • nmrao's avatar
    nmrao
    Champion Level 3
    Hi,

    I believe, the response was received from the server, not sure if soapUI can interfere there.

    A request can be validated against wsdl easily by key strokes of Alt+v which will reveal line numbers which are having problem.

    There is also possibility to validate against the wsdl for each outgoing request using Preferences, so this can validate request automatically before hitting the server.
    Hope this helps.

    Regards,
    Rao.
    • daisyaxing's avatar
      daisyaxing
      Visitor

      You can click the Request in SoapUI, then find "Remove Empty Content" in the "Request Properties", change the value from false to true, the "Unmarshalling Error" will disappear.