|
Home > Archive > BizTalk Server General > February 2006 > XSD.exe tool and Biztalk internal webservice creating tool
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
XSD.exe tool and Biztalk internal webservice creating tool
|
|
| Heena Patel 2006-02-17, 10:50 pm |
| 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??
| |
| Leonid Ganeline 2006-02-21, 5: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://mynamespace/1.x",
> IsNullable=false)]
> public partial class Test_Message {
> }
>
> Can someone help me understand how can I have a work around??
>
>
|
|
|
|
|