Issue in SOAPUI Call WebService incoming datetime string argument "is not a valid Allxsd value"

Source: Internet
Author: User
Tags stack trace soapui

Set the incoming parameter in soapui to our usual date format Yyyy-mm-dd HH:mm:ss.fff such as: 2014-11-11 11:11:11.111 will error,

The error message is as follows:

<soap:envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi= "http://www.w3.org/2001/ Xmlschema-instance "xmlns:xsd=" Http://www.w3.org/2001/XMLSchema ">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>system.web.services.protocols.soapexception: The server was unable to read the request. There are errors in the---> System.InvalidOperationException:XML documentation (5, 66). ---> system.formatexception: The string "2014-11-05 15:03:50.963" is not a valid allxsd value.
In System.Xml.Schema.XsdDateTime. ctor (String text, xsddatetimeflags kinds)
In System.Xml.XmlConvert.ToDateTime (String s, XmlDateTimeSerializationMode datetimeoption)
In System.Xml.Serialization.XmlCustomFormatter.ToDateTime (String value)
In the Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1_NullableOfDateTime (Boolean Checktype)
In Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read4_GetBudgetData ()
In Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer4.Deserialize (Xmlserializationreader Reader
In System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader XmlReader, String Encodingstyle, Xmldeserializationevents events)
---the end of the inner exception stack trace---
In System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader XmlReader, String Encodingstyle, Xmldeserializationevents events)
In System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader XmlReader, String encodingstyle)
In System.Web.Services.Protocols.SoapServerProtocol.ReadParameters ()
---the end of the inner exception stack trace---
In System.Web.Services.Protocols.SoapServerProtocol.ReadParameters ()
At System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest () </faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>

WORKAROUND: Replace the date format with the following: Yyyy-mm-ddthh:mm:ss.fff: 2014-11-11t11:11:11.111 can be called normally.

Issue in SOAPUI Call WebService incoming datetime string argument "is not a valid Allxsd value"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.