473,700 Members | 2,528 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 1939
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
3895
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. I created a .exe test harness which does the same and works OK when run by the same user.
2
2455
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 the start of the service to 2AM, and sets the timer. When the timer expires, it re-reads the...
2
1588
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
3316
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
9219
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7819
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5904
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4408
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3097
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2032
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.