471,604 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,604 software developers and data experts.

Why does svcutil generate two classes in different namespaces?

If I define Order class in WCF data contract

[DataContract(Namespace = http://OrderEntry)]
public class Order
// ...

and use svcutil to generate a proxy class specifying namespace

..../n:http://OrderEntry, OrderEntry

then svcutil generates two classes:

First one in the default namespace

[System.CodeDom.Compiler.GeneratedCodeAttribute("sv cutil", "3.0.4506.30")]
[System.ComponentModel.DesignerCategoryAttribute("c ode")]
[System.Xml.Serialization.XmlTypeAttribute(Namespac e=http://OrderEntry)]
public partial class Order

and second one in OrderEntry namespace

namespace CTII.CityDispatch2007.Wcf
using System.Runtime.Serialization;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Sy stem.Runtime.Serialization",
[System.Runtime.Serialization.DataContractAttribute ()]
public partial class Order: object,
/// ...
I never understood why it is doing this but it is confusing because there
are two classes on the client, Order and OrderEntry.Order...

I want to have only OrderEntry.Order, that is why I use OrderEntry
namespace, but why do I get Order class in the default namespace and why is
this default Order class is not derivied from anything? What is it for?


Jun 11 '07 #1
0 1943

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by PeterW | last post: by
6 posts views Thread by Michael C | last post: by
2 posts views Thread by Franck | last post: by
1 post views Thread by adacai | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.