Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > The string '' is not a valid AllXsd value - meh?

Thread Tools

The string '' is not a valid AllXsd value - meh?

Neil Chambers
Posts: n/a

Hello there - I'm quite new to WebServices and and I've exhausted my
troubleshooting capacity on this one.

I am running a lookup method against a remote webservice and am expecting
some data back. It would seem as if the response I am getting back is
actually missing a field and/or cannot be converted from '' (Blank?) to a

On the face of it, it seems as if a dateTime conversion is failing - at
least from my limited view of things.

Is it possible to narrow down which property is being improperly formatted?

What other kinds of tests can I run?

Considering the WebService definition/proxy was built using the WSDL tool
from a schema file, how appropriate might it be to modify the resultant
service difinition in order to fix this (if I actually find what the problem

Sincerely - n
************************************************** *************

Server Error in '/Test' Application.

The string '' is not a valid AllXsd value.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.FormatException: The string '' is not a valid
AllXsd value.

Stack Trace:

[FormatException: The string '' is not a valid AllXsd value.]
System.Xml.Schema.XsdDateTime..ctor(String text, XsdDateTimeFlags kinds)
System.Xml.XmlConvert.ToDateTime(String s, XmlDateTimeSerializationMode
dateTimeOption) +38
System.Xml.Serialization.XmlCustomFormatter.ToDate Time(String value) +60
System.Xml.Serialization.XmlSerializationReader.To DateTime(String value)
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReaderpmService.Read11_TicketLookupTyp e(Boolean
isNullable, Boolean checkType) +2968
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReaderpmService.Read12_LookupTicketRes ponseType(Boolean
isNullable, Boolean checkType) +466
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReaderpmService.Read18_lookupTicketRes ponse()
Microsoft.Xml.Serialization.GeneratedAssembly.Arra yOfObjectSerializer1.Deserialize(XmlSerializationR eader
reader) +40
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events) +161

[InvalidOperationException: There is an error in XML document (8, 463).]
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events) +637
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader,
String encodingStyle) +32
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) +204
pmService.lookupTicket(LookupTicketRequestType lookupTicketRequest) +47
_Default.ticketLookup(String tNum) in
_Default.TicketLookupButton_Click(Object sender, EventArgs e) in
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto identify a string value vs. a numeric value in std::string C++ 9 09-19-2007 09:34 AM
is not a valid AllXsd value Massimo_Z ASP .Net Web Services 0 01-03-2007 08:29 PM
The string '2006-11-20T09:48:08+0530' is not a valid AllXsd value. imonline ASP .Net Web Services 0 11-23-2006 06:09 AM
For columns not defined as System.String, the only valid value is (Throw exception). Rob Dob ASP .Net 5 09-26-2006 01:23 PM
how to sort hash by value, where value is a valid date perl_help_needed Perl Misc 12 06-02-2005 06:27 PM