I was trying to use the XSDObjectGenerator that is downloadable from the MS
website, and I am having issues. When I generate the objects
from the xsd file it places everything in 1 CS file. When I try to do a
build
on the file I get errors because it duplicates a bunch of classes. Am I
doing something wrong? Below is an example of classes that it duplicates.
It looks like one is supposed to inherit from the other, so do I have to
seperate these out into seperate files? If so, why is that not an option in
the XSDObjectGenerator? This thing generates over 25,000 lines of code from
this xsd file.
[XmlType(TypeName="TransportMeans",Namespace=Declar ations.SchemaVersion),XmlRoot,Serializable]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public class TransportMeans
{
[XmlElement(ElementName="TransportMeansCoded",IsNul lable=false,Form=XmlSchemaForm.Qualified,Namespace =Declarations.SchemaVersion)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public TransportMeansCode __TransportMeansCoded;
[XmlIgnore]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool __TransportMeansCodedSpecified;
[XmlIgnore]
public TransportMeansCode TransportMeansCoded
{
get { return __TransportMeansCoded; }
set { __TransportMeansCoded = value; __TransportMeansCodedSpecified =
true; }
}
[XmlElement(ElementName="TransportMeansCodedOther", IsNullable=false,Form=XmlSchemaForm.Qualified,Data Type="string",Namespace=Declarations.SchemaVersion )]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public string __TransportMeansCodedOther;
[XmlIgnore]
public string TransportMeansCodedOther
{
get { return __TransportMeansCodedOther; }
set { __TransportMeansCodedOther = value; }
}
public TransportMeans()
{
}
}
[XmlRoot(ElementName="TransportMeans",Namespace=Dec larations.SchemaVersion,IsNullable=false),Serializ able]
public class TransportMeans : TransportMeans
{
public TransportMeans() : base()
{
}
}
Thanks,
Jim 4 1758
Jim, I don't see any duplicate classes in that code snippet. . . Can you
elaborate on the problems you are seeing? -Dino
"JTrigger" <jt******@nospam.nospam> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl... I was trying to use the XSDObjectGenerator that is downloadable from the MS website, and I am having issues. When I generate the objects from the xsd file it places everything in 1 CS file. When I try to do a build on the file I get errors because it duplicates a bunch of classes. Am I doing something wrong? Below is an example of classes that it duplicates. It looks like one is supposed to inherit from the other, so do I have to seperate these out into seperate files? If so, why is that not an option in the XSDObjectGenerator? This thing generates over 25,000 lines of code from this xsd file.
[XmlType(TypeName="TransportMeans",Namespace=Declar ations.SchemaVersion),XmlRoot,Serializable]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public class TransportMeans
{
[XmlElement(ElementName="TransportMeansCoded",IsNul lable=false,Form=XmlSchemaForm.Qualified,Namespace =Declarations.SchemaVersion)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public TransportMeansCode __TransportMeansCoded;
[XmlIgnore]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool __TransportMeansCodedSpecified;
[XmlIgnore]
public TransportMeansCode TransportMeansCoded
{
get { return __TransportMeansCoded; }
set { __TransportMeansCoded = value; __TransportMeansCodedSpecified = true; }
}
[XmlElement(ElementName="TransportMeansCodedOther", IsNullable=false,Form=XmlSchemaForm.Qualified,Data Type="string",Namespace=Declarations.SchemaVersion )]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public string __TransportMeansCodedOther;
[XmlIgnore]
public string TransportMeansCodedOther
{
get { return __TransportMeansCodedOther; }
set { __TransportMeansCodedOther = value; }
}
public TransportMeans()
{
}
} [XmlRoot(ElementName="TransportMeans",Namespace=Dec larations.SchemaVersion,IsNullable=false),Serializ able]
public class TransportMeans : TransportMeans
{
public TransportMeans() : base()
{
}
} Thanks, Jim
How do you not see duplicate class definitions? This time I put 3 rows of *
between the 2 class defenitions so you can see where the first one ends and
the second one begins better. I would have attached the file, but your
server will not let me. TransportMeans is declared twice. The second
declaration shows inheritance from the first declaration though. When I try
to compile I get the following error:
c:\documents and settings\fowlerjo\my documents\visual studio
projects\dellinterface\interfaceobjects\order.cs(3 1778,15): error CS0101:
The namespace 'EDS.DellInterface.xCBLObjects' already contains a definition
for 'TransportMeans'
c:\documents and settings\fowlerjo\my documents\visual studio
projects\dellinterface\interfaceobjects\order.cs(2 5400,15): (Related
location)
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl... Jim, I don't see any duplicate classes in that code snippet. . . Can you elaborate on the problems you are seeing? -Dino "JTrigger" <jt******@nospam.nospam> wrote in message news:Ov**************@TK2MSFTNGP12.phx.gbl...I was trying to use the XSDObjectGenerator that is downloadable from the MS website, and I am having issues. When I generate the objects from the xsd file it places everything in 1 CS file. When I try to do a build on the file I get errors because it duplicates a bunch of classes. Am I doing something wrong? Below is an example of classes that it duplicates. It looks like one is supposed to inherit from the other, so do I have to seperate these out into seperate files? If so, why is that not an option in the XSDObjectGenerator? This thing generates over 25,000 lines of code from this xsd file.
[XmlType(TypeName="TransportMeans",Namespace=Declar ations.SchemaVersion),XmlRoot,Serializable]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public class TransportMeans
{
[XmlElement(ElementName="TransportMeansCoded",IsNul lable=false,Form=XmlSchemaForm.Qualified,Namespace =Declarations.SchemaVersion)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public TransportMeansCode __TransportMeansCoded;
[XmlIgnore]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool __TransportMeansCodedSpecified;
[XmlIgnore]
public TransportMeansCode TransportMeansCoded
{
get { return __TransportMeansCoded; }
set { __TransportMeansCoded = value; __TransportMeansCodedSpecified = true; }
}
[XmlElement(ElementName="TransportMeansCodedOther", IsNullable=false,Form=XmlSchemaForm.Qualified,Data Type="string",Namespace=Declarations.SchemaVersion )]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public string __TransportMeansCodedOther;
[XmlIgnore]
public string TransportMeansCodedOther
{
get { return __TransportMeansCodedOther; }
set { __TransportMeansCodedOther = value; }
}
public TransportMeans()
{
}
}
************************************************ **************************** ************************************************ **************************** ************************************************ ****************************
[XmlRoot(ElementName="TransportMeans",Namespace=Dec larations.SchemaVersion,IsNullable=false),Serializ able]
public class TransportMeans : TransportMeans
{
public TransportMeans() : base()
{
}
} Thanks, Jim
Here is the code from the xSD file that is used to generate the code.
<xsd:complexType name="TansportMeans">
<xsd:sequence>
<xsd:element name="TansportMeansCoded" type="TansportMeansCode"/>
<xsd:element minOccurs="0" name="TansportMeansCodedOther"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="TansportMeans" type="TansportMeans"/>
"JTrigger" <jt******@nospam.nospam> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl... How do you not see duplicate class definitions? This time I put 3 rows of * between the 2 class defenitions so you can see where the first one ends and the second one begins better. I would have attached the file, but your server will not let me. TransportMeans is declared twice. The second declaration shows inheritance from the first declaration though. When I try to compile I get the following error:
c:\documents and settings\fowlerjo\my documents\visual studio projects\dellinterface\interfaceobjects\order.cs(3 1778,15): error CS0101: The namespace 'EDS.DellInterface.xCBLObjects' already contains a definition for 'TransportMeans'
c:\documents and settings\fowlerjo\my documents\visual studio projects\dellinterface\interfaceobjects\order.cs(2 5400,15): (Related location) "Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message news:uA*************@TK2MSFTNGP15.phx.gbl... Jim, I don't see any duplicate classes in that code snippet. . . Can you elaborate on the problems you are seeing? -Dino "JTrigger" <jt******@nospam.nospam> wrote in message news:Ov**************@TK2MSFTNGP12.phx.gbl...I was trying to use the XSDObjectGenerator that is downloadable from the MS website, and I am having issues. When I generate the objects from the xsd file it places everything in 1 CS file. When I try to do a build on the file I get errors because it duplicates a bunch of classes. Am I doing something wrong? Below is an example of classes that it duplicates. It looks like one is supposed to inherit from the other, so do I have to seperate these out into seperate files? If so, why is that not an option in the XSDObjectGenerator? This thing generates over 25,000 lines of code from this xsd file.
[XmlType(TypeName="TransportMeans",Namespace=Declar ations.SchemaVersion),XmlRoot,Serializable]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public class TransportMeans
{
[XmlElement(ElementName="TransportMeansCoded",IsNul lable=false,Form=XmlSchemaForm.Qualified,Namespace =Declarations.SchemaVersion)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public TransportMeansCode __TransportMeansCoded;
[XmlIgnore]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool __TransportMeansCodedSpecified;
[XmlIgnore]
public TransportMeansCode TransportMeansCoded
{
get { return __TransportMeansCoded; }
set { __TransportMeansCoded = value; __TransportMeansCodedSpecified = true; }
}
[XmlElement(ElementName="TransportMeansCodedOther", IsNullable=false,Form=XmlSchemaForm.Qualified,Data Type="string",Namespace=Declarations.SchemaVersion )]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public string __TransportMeansCodedOther;
[XmlIgnore]
public string TransportMeansCodedOther
{
get { return __TransportMeansCodedOther; }
set { __TransportMeansCodedOther = value; }
}
public TransportMeans()
{
}
}
*********************************************** ***************************** *********************************************** ***************************** *********************************************** *****************************
[XmlRoot(ElementName="TransportMeans",Namespace=Dec larations.SchemaVersion,IsNullable=false),Serializ able]
public class TransportMeans : TransportMeans
{
public TransportMeans() : base()
{
}
} Thanks, Jim
Ah, sorry, I didn't see the duplicates immediately.
About attachments, Others have sent attachments, I think? Maybe it is not
the ms server that is refusing.
As a workaround, can you not rename your ComplexType "TansportMeans" to
"CT_TansportMeans" or something similar?
-D
"JTrigger" <jt******@nospam.nospam> wrote in message
news:uo****************@TK2MSFTNGP09.phx.gbl... Here is the code from the xSD file that is used to generate the code.
<xsd:complexType name="TansportMeans">
<xsd:sequence>
<xsd:element name="TansportMeansCoded" type="TansportMeansCode"/>
<xsd:element minOccurs="0" name="TansportMeansCodedOther" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="TansportMeans" type="TansportMeans"/>
"JTrigger" <jt******@nospam.nospam> wrote in message news:OL**************@TK2MSFTNGP12.phx.gbl... How do you not see duplicate class definitions? This time I put 3 rows of * between the 2 class defenitions so you can see where the first one ends and the second one begins better. I would have attached the file, but your server will not let me. TransportMeans is declared twice. The second declaration shows inheritance from the first declaration though. When I try to compile I get the following error:
c:\documents and settings\fowlerjo\my documents\visual studio projects\dellinterface\interfaceobjects\order.cs(3 1778,15): error CS0101: The namespace 'EDS.DellInterface.xCBLObjects' already contains a definition for 'TransportMeans'
c:\documents and settings\fowlerjo\my documents\visual studio projects\dellinterface\interfaceobjects\order.cs(2 5400,15): (Related location) "Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message news:uA*************@TK2MSFTNGP15.phx.gbl... Jim, I don't see any duplicate classes in that code snippet. . . Can you elaborate on the problems you are seeing? -Dino "JTrigger" <jt******@nospam.nospam> wrote in message news:Ov**************@TK2MSFTNGP12.phx.gbl... I was trying to use the XSDObjectGenerator that is downloadable from the MS website, and I am having issues. When I generate the objects from the xsd file it places everything in 1 CS file. When I try to do a build on the file I get errors because it duplicates a bunch of classes. Am I doing something wrong? Below is an example of classes that it duplicates. It looks like one is supposed to inherit from the other, so do I have to seperate these out into seperate files? If so, why is that not an option in the XSDObjectGenerator? This thing generates over 25,000 lines of code from this xsd file.
[XmlType(TypeName="TransportMeans",Namespace=Declar ations.SchemaVersion),XmlRoot,Serializable]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public class TransportMeans
{
[XmlElement(ElementName="TransportMeansCoded",IsNul lable=false,Form=XmlSchemaForm.Qualified,Namespace =Declarations.SchemaVersion)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public TransportMeansCode __TransportMeansCoded;
[XmlIgnore]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool __TransportMeansCodedSpecified;
[XmlIgnore]
public TransportMeansCode TransportMeansCoded
{
get { return __TransportMeansCoded; }
set { __TransportMeansCoded = value; __TransportMeansCodedSpecified = true; }
}
[XmlElement(ElementName="TransportMeansCodedOther", IsNullable=false,Form=XmlSchemaForm.Qualified,Data Type="string",Namespace=Declarations.SchemaVersion )]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public string __TransportMeansCodedOther;
[XmlIgnore]
public string TransportMeansCodedOther
{
get { return __TransportMeansCodedOther; }
set { __TransportMeansCodedOther = value; }
}
public TransportMeans()
{
}
}
********************************************** ****************************** ********************************************** ****************************** ********************************************** ******************************
[XmlRoot(ElementName="TransportMeans",Namespace=Dec larations.SchemaVersion,IsNullable=false),Serializ able]
public class TransportMeans : TransportMeans
{
public TransportMeans() : base()
{
}
} Thanks, Jim
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tom Loredo |
last post by:
Hi folks-
I'm about to move from a Solaris 8/SPARC environment to a Dell running
RedHat 9. Are there any issues I need to be aware of in bringing my
Python code over (mostly scientific...
|
by: grahamd |
last post by:
Who are the appropriate people to report security problems to
in respect of a module included with the Python distribution?
I don't feel it appropriate to be reporting it on general mailing
lists.
|
by: sandy |
last post by:
Hi All,
I am a newbie to MySQL and Python. At the first place, I would like to
know what are the general performance issues (if any) of using MySQL
with Python.
By performance, I wanted to...
|
by: malcolm |
last post by:
Hello,
We have a robust (.NET 1.1 c# winforms) client-server application that
utilizes many typed DataSets, typed DataTables and typed DataRows. Our
application is a series of windows and popup...
|
by: Aliandro |
last post by:
Hi Does any one know where I can find information regarding any issues with
SQL and IIS being run under windows XP SP2? as I am in the process of
programmning in Dot net and neet some way of...
|
by: PAF |
last post by:
Hi,
I need to send data to service via XML. This service gave me a schema
that you could find in
http://www.forum-datenaustausch.ch/fr/pharmacyinvoicerequest_400.xsd .
I generated objects...
|
by: GaryDean |
last post by:
We have been developing all of our .net applications on 32 bit windows using
32 bit SQL Server. We are being asked to now deploy to servers running
64bit windows and 64bit SQL Server. Are there...
|
by: eschneider |
last post by:
Just some common issues with WS:
Using custom objects: When objects change, seems you are always fixing some
issue. Update references, which sometimes does not work.
Deployment:
Weird errors...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |