Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to create seperate XSD files for each class to send with WSDL

How to create seperate XSD files for each class to send with WSDL

How to create seperate XSD files for each class to send with WSDL


I am developing a WCF service in .net and would like to give the wsdl file to the customer who can consume our service. I successfully Generated the wsdl which includes the following xsd import statements
<xsd:import schemaLocation="https://URL/Service-v1.svc?xsd=xsd1" namespace="Service-v1" />
<xsd:import schemaLocation="https://URL/PricingService-v1.svc?xsd=xsd3" />

**But what I would like to know is, is that is the best way or sufficient to send the wsdl to the customer or do I need to send them the XSD files as well..**

How can I generate seperate XSD files for each class like class1.xsd, class2.xsd, class3.xsd so I can send it to them along with wsdl file

here is my project structure



          [DataMember(Name = "Term", IsRequired = true, Order = 3)]
        public decimal Term { get; set; }
         private int _cdrfield { get; set; }
        [DataMember(Name = "CDR", Order = 4)]
        public int CDR
                return (int)this._cdrfield;
                this._cdrfield = value;
        [DataContract(Name = "CDR")]
        public enum CDREnumeration
            item1Mb = 1,
            item1Mb = 2




  IService1 with the following contracts
    Response GetQuote1(Class1 class1Request);
    Response GetQuote2(Class2 class2Request);
    Response GetQuote2(Class2 class2Request);
 Service1 : Iservice1
    public Response GetQuote1(Class1 class1Request)
              return response;
   public Response GetQuote2(Class2 class2Request)
              return response;
   public Response GetQuote3(Class3 class3Request)
              return response;
I really appreciate your input as I search on the internet but couldn't be able to decide on the best option as we have no control over the other end who is going to implement our wcf service.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close