Biztalk WS Acircular type ref was detected in anonymous type

Home Page Forums BizTalk 2004 – BizTalk 2010 Biztalk WS Acircular type ref was detected in anonymous type

Viewing 1 reply thread
  • Author
    Posts
    • #14376

      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??
      🙁

    • #14377

      Just a total guess Are you importing schemas with the same root node names and no namespaces?

      Have you tried running the wizard and then just running the web service? It should compile it for you. I have never opened them up and tried to build them – although I should work.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.