Hi Everyone,
I have a schema in biztalk that I am trying to create a webservice. I
used biztalk webservice publishing wizard and it created webservice
fine. Also, when I compile the webservice, it goes fine but when I run
it, the webservice throws Error with following:
A circular type reference was detected in anonymous type
‘Test_Message’. Please change ‘Test_Message’ to be a named type by
setting AnonymousType=false in the type definition.
I tried to work with the same schema and created class using XSD.exe
tool which later gave me the same exact error at run time. XSD Tool
generates following headers for my class and If I change the
anonymousType to false it works fine, but I need to use the biztalk
generated webservice which I can’t control what headers it will be
using.
[System.CodeDom.Compiler.GeneratedCodeAttribute(\”xsd\”, \”2.0.50727.42\”)]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(\”code\”)]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace=\”http://mynamespace/1.x\”,IsNullable=false)]
public partial class Test_Message {
}
Can someone help me understand how can I have a work around??
🙁