XSD.exe tool and Biztalk internal webservice creating tool
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > XSD.exe tool and Biztalk internal webservice creating tool




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    XSD.exe tool and Biztalk internal webservice creating tool  
Heena Patel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-18-06 03:50 AM

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






[ Post a follow-up to this message ]



    RE: XSD.exe tool and Biztalk internal webservice creating tool  
Leonid Ganeline


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:18 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register