473,554 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Serv ices.Protocols. SoapException: Server was unable to read
request. ---System.InvalidO perationExcepti on: There is an error in XML
document (1, 1422). ---System.Data.Dat aException: Undefined data type:
'anyType'.
at System.Data.XSD Schema.FindName Type(String name)
at System.Data.XSD Schema.HandleEl ementColumn(Xml SchemaElement elem,
DataTable table, Boolean isBase)
at System.Data.XSD Schema.HandlePa rticle(XmlSchem aParticle pt, DataTable
table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSD Schema.HandleCo mplexType(XmlSc hemaComplexType ct,
DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSD Schema.Instanti ateTable(XmlSch emaElement node,
XmlSchemaComple xType typeNode, Boolean isRef)
at System.Data.XSD Schema.HandleTa ble(XmlSchemaEl ement node)
at System.Data.XSD Schema.HandleDa taSet(XmlSchema Element node)
at System.Data.XSD Schema.LoadSche ma(XmlSchema schemaRoot, DataSet ds)
at System.Data.Dat aSet.ReadXSDSch ema(XmlReader reader, Boolean
denyResolving)
at System.Data.Dat aSet.ReadXml(Xm lReader reader, XmlReadMode mode,
Boolean denyResolving)
at System.Data.Dat aSet.ReadXmlSer ializable(XmlRe ader reader)
at
System.Data.Dat aSet.System.Xml .Serialization. IXmlSerializabl e.ReadXml(XmlRe ader
reader)
at
System.Xml.Seri alization.XmlSe rializationRead er.ReadSerializ able(IXmlSerial izable
serializable)
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReader1.Read1 4_SaveRegistere dSoftware()
--- End of inner exception stack trace ---
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader)
at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
--- End of inner exception stack trace ---
at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
at System.Web.Serv ices.Protocols. WebServiceHandl er.Invoke()
at System.Web.Serv ices.Protocols. WebServiceHandl er.CoreProcessR equest()
Any thoughts?
Nov 20 '06 #1
3 1934
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.Serv ices.Protocols. SoapException: Server was unable to read
request. ---System.InvalidO perationExcepti on: There is an error in XML
document (1, 1422). ---System.Data.Dat aException: Undefined data type:
'anyType'.
at System.Data.XSD Schema.FindName Type(String name)
at System.Data.XSD Schema.HandleEl ementColumn(Xml SchemaElement elem,
DataTable table, Boolean isBase)
at System.Data.XSD Schema.HandlePa rticle(XmlSchem aParticle pt, DataTable
table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSD Schema.HandleCo mplexType(XmlSc hemaComplexType ct,
DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSD Schema.Instanti ateTable(XmlSch emaElement node,
XmlSchemaComple xType typeNode, Boolean isRef)
at System.Data.XSD Schema.HandleTa ble(XmlSchemaEl ement node)
at System.Data.XSD Schema.HandleDa taSet(XmlSchema Element node)
at System.Data.XSD Schema.LoadSche ma(XmlSchema schemaRoot, DataSet ds)
at System.Data.Dat aSet.ReadXSDSch ema(XmlReader reader, Boolean
denyResolving)
at System.Data.Dat aSet.ReadXml(Xm lReader reader, XmlReadMode mode,
Boolean denyResolving)
at System.Data.Dat aSet.ReadXmlSer ializable(XmlRe ader reader)
at
System.Data.Dat aSet.System.Xml .Serialization. IXmlSerializabl e.ReadXml(XmlRe ader
reader)
at
System.Xml.Seri alization.XmlSe rializationRead er.ReadSerializ able(IXmlSerial izable
serializable)
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReader1.Read1 4_SaveRegistere dSoftware()
--- End of inner exception stack trace ---
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader)
at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
--- End of inner exception stack trace ---
at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
at System.Web.Serv ices.Protocols. WebServiceHandl er.Invoke()
at System.Web.Serv ices.Protocols. WebServiceHandl er.CoreProcessR equest()
Any thoughts?
Nov 20 '06 #2

"UJ" <fr**@nowhere.c omwrote in message
news:Oy******** ******@TK2MSFTN GP06.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.Serv ices.Protocols. SoapException: Server was unable to read
request. ---System.InvalidO perationExcepti on: There is an error in XML
document (1, 1422). ---System.Data.Dat aException: Undefined data type:
'anyType'.
at System.Data.XSD Schema.FindName Type(String name)
at System.Data.XSD Schema.HandleEl ementColumn(Xml SchemaElement elem,
DataTable table, Boolean isBase)
at System.Data.XSD Schema.HandlePa rticle(XmlSchem aParticle pt, DataTable
table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSD Schema.HandleCo mplexType(XmlSc hemaComplexType ct,
DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSD Schema.Instanti ateTable(XmlSch emaElement node,
XmlSchemaComple xType typeNode, Boolean isRef)
at System.Data.XSD Schema.HandleTa ble(XmlSchemaEl ement node)
at System.Data.XSD Schema.HandleDa taSet(XmlSchema Element node)
at System.Data.XSD Schema.LoadSche ma(XmlSchema schemaRoot, DataSet ds)
at System.Data.Dat aSet.ReadXSDSch ema(XmlReader reader, Boolean
denyResolving)
at System.Data.Dat aSet.ReadXml(Xm lReader reader, XmlReadMode mode,
Boolean denyResolving)
at System.Data.Dat aSet.ReadXmlSer ializable(XmlRe ader reader)
at
System.Data.Dat aSet.System.Xml .Serialization. IXmlSerializabl e.ReadXml(XmlRe ader
reader)
at
System.Xml.Seri alization.XmlSe rializationRead er.ReadSerializ able(IXmlSerial izable
serializable)
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReader1.Read1 4_SaveRegistere dSoftware()
--- End of inner exception stack trace ---
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader)
at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
--- End of inner exception stack trace ---
at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
at System.Web.Serv ices.Protocols. WebServiceHandl er.Invoke()
at System.Web.Serv ices.Protocols. WebServiceHandl er.CoreProcessR equest()
Any thoughts?

Nov 21 '06 #3
"UJ" <fr**@nowhere.c omwrote in message
news:Oy******** ******@TK2MSFTN GP06.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.Serv ices.Protocols. SoapException: Server was unable to read
request. ---System.InvalidO perationExcepti on: There is an error in XML
document (1, 1422). ---System.Data.Dat aException: 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3891
by: Richard | last post by:
I have created a Windows service which performs various functions including setting variables in other application objects. When the service runs under Local System account the functionality all works OK, however when service runs under a user account it produces exception errors when trying to set variables in the application objects. ...
2
2440
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer (System.Timers.Timer) which has an interval of 24 hours. Actually, it reads a time like 2AM out of the config file, and calculates the time between...
2
1578
by: prad | last post by:
Hi, I am working with webservices in asp.net framework 2.0. when i run the webservice it didnot give any errors and it was working well but when I add it to one of my projects as add web reference its giving the following error. ++++++++++++++++++++++++++++++++++++++++++++++++ Server Error in '/' Application....
3
3309
by: uday1302 | last post by:
Hi Dear, Here I am trying to upload a photo. protected void LoadImage() { string UserName = Session.ToString(); byte Data = Profile.GetImageData(UserName); //Stmt Correct where profile is class if (Data != null)
0
7605
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7808
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5162
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3556
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
845
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.