472,127 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Moving a working web service to another server produces the following error.

UJ
I've got a working web service that we are moving to another machine and now
I suddenly get the following error.

While transferring the files, got the following message:
System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---System.InvalidOperationException: There is an error in XML
document (1, 1422). ---System.Data.DataException: Undefined data type:
'anyType'.
at System.Data.XSDSchema.FindNameType(String name)
at System.Data.XSDSchema.HandleElementColumn(XmlSchem aElement elem,
DataTable table, Boolean isBase)
at System.Data.XSDSchema.HandleParticle(XmlSchemaPart icle pt, DataTable
table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSDSchema.HandleComplexType(XmlSchemaC omplexType ct,
DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSDSchema.InstantiateTable(XmlSchemaEl ement node,
XmlSchemaComplexType typeNode, Boolean isRef)
at System.Data.XSDSchema.HandleTable(XmlSchemaElement node)
at System.Data.XSDSchema.HandleDataSet(XmlSchemaEleme nt node)
at System.Data.XSDSchema.LoadSchema(XmlSchema schemaRoot, DataSet ds)
at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean
denyResolving)
at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode,
Boolean denyResolving)
at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)
at
System.Data.DataSet.System.Xml.Serialization.IXmlS erializable.ReadXml(XmlReader
reader)
at
System.Xml.Serialization.XmlSerializationReader.Re adSerializable(IXmlSerializable
serializable)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read14_SaveRegisteredSoftware( )
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.R eadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
Any thoughts?
Nov 20 '06 #1
3 1858
Classic error.
Are you able to see the default webform presented by any microsoft webservice?
And are you able to see the wsdl using address?wsdl in IE?

If so - your connection is fine. From the error details, I would consider
verifiying that you have the same .NET version installled (Undefined data
type: anytype). Are you sure you are presenting the same environment on both
servers?

--
rgds.
/Claus Konrad
MCSD.NET (C#)
"UJ" wrote:
I've got a working web service that we are moving to another machine and now
I suddenly get the following error.

While transferring the files, got the following message:
System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---System.InvalidOperationException: There is an error in XML
document (1, 1422). ---System.Data.DataException: Undefined data type:
'anyType'.
at System.Data.XSDSchema.FindNameType(String name)
at System.Data.XSDSchema.HandleElementColumn(XmlSchem aElement elem,
DataTable table, Boolean isBase)
at System.Data.XSDSchema.HandleParticle(XmlSchemaPart icle pt, DataTable
table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSDSchema.HandleComplexType(XmlSchemaC omplexType ct,
DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSDSchema.InstantiateTable(XmlSchemaEl ement node,
XmlSchemaComplexType typeNode, Boolean isRef)
at System.Data.XSDSchema.HandleTable(XmlSchemaElement node)
at System.Data.XSDSchema.HandleDataSet(XmlSchemaEleme nt node)
at System.Data.XSDSchema.LoadSchema(XmlSchema schemaRoot, DataSet ds)
at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean
denyResolving)
at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode,
Boolean denyResolving)
at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)
at
System.Data.DataSet.System.Xml.Serialization.IXmlS erializable.ReadXml(XmlReader
reader)
at
System.Xml.Serialization.XmlSerializationReader.Re adSerializable(IXmlSerializable
serializable)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read14_SaveRegisteredSoftware( )
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.R eadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
Any thoughts?
Nov 20 '06 #2

"UJ" <fr**@nowhere.comwrote in message
news:Oy**************@TK2MSFTNGP06.phx.gbl...
I've got a working web service that we are moving to another machine and
now I suddenly get the following error.

While transferring the files, got the following message:
System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---System.InvalidOperationException: There is an error in XML
document (1, 1422). ---System.Data.DataException: Undefined data type:
'anyType'.
at System.Data.XSDSchema.FindNameType(String name)
at System.Data.XSDSchema.HandleElementColumn(XmlSchem aElement elem,
DataTable table, Boolean isBase)
at System.Data.XSDSchema.HandleParticle(XmlSchemaPart icle pt, DataTable
table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSDSchema.HandleComplexType(XmlSchemaC omplexType ct,
DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSDSchema.InstantiateTable(XmlSchemaEl ement node,
XmlSchemaComplexType typeNode, Boolean isRef)
at System.Data.XSDSchema.HandleTable(XmlSchemaElement node)
at System.Data.XSDSchema.HandleDataSet(XmlSchemaEleme nt node)
at System.Data.XSDSchema.LoadSchema(XmlSchema schemaRoot, DataSet ds)
at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean
denyResolving)
at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode,
Boolean denyResolving)
at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)
at
System.Data.DataSet.System.Xml.Serialization.IXmlS erializable.ReadXml(XmlReader
reader)
at
System.Xml.Serialization.XmlSerializationReader.Re adSerializable(IXmlSerializable
serializable)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read14_SaveRegisteredSoftware( )
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.R eadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.R eadParameters()
at System.Web.Services.Protocols.WebServiceHandler.In voke()
at System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()
Any thoughts?

Nov 21 '06 #3
"UJ" <fr**@nowhere.comwrote in message
news:Oy**************@TK2MSFTNGP06.phx.gbl...
I've got a working web service that we are moving to another machine and
now I suddenly get the following error.

While transferring the files, got the following message:
System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---System.InvalidOperationException: There is an error in XML
document (1, 1422). ---System.Data.DataException: Undefined data type:
'anyType'.
....
>
Any thoughts?
This may not seem too helpful, but my thought is that the exception message
is telling you the truth. 'anyType' is undefined.

Now, all you have to do is get a look at the XML being sent to see how
'anyType' is being used at line 1, character 1422, and to figure out why you
and .NET disagree on whether it is defined.

A hint: perhaps there is a namespace mismatch.

Another hint: you may want to use something like the tracing tools at
http://www.pocketsoap.com/. I understand the Microsoft Soap Toolkit also has
a tracing tool. There are also commercial tools, of which SoapScope by
MindReef is reasonably priced.

John
Nov 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.