02-21-06 10:51 PM
Hi Heena,
It's something wrong with your Message type. It equals Target_namespace +
Root_node_name.
The XmlRootAttribute should have the Name attribute!
Do you have a Target_namespace and a Root_node in your schema?
Regards,
Leonid Ganeline
BizTalk Developer
Vancouver
http://geekswithblogs.net/leonidganeline/ - you're welcome!
==================================
"Heena Patel" wrote:
> 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://mynamespa
ce/1.x",
> IsNullable=false)]
> public partial class Test_Message {
> }
>
> Can someone help me understand how can I have a work around??
>
>
[ Post a follow-up to this message ]
|