Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7762867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:31:09+00:00 2026-06-01T14:31:09+00:00

I am creating Schema using Core Service in SDL Tridion 2011 SP1. In the

  • 0

I am creating Schema using Core Service in SDL Tridion 2011 SP1. In the creation of the Schema I have used the custom namespace URI for the Schema. Generally when we create a Schema through Tridion CME directly, we will get a namespace URI generated automatically starting with uuid:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I have used this code to create a Schema:

Tridion.ContentManager.CoreService.Client.SchemaData schemas = new SchemaData
{
    Title = "coreservicesschema3",
    Description = "coreservicesschema",
    Id = "tcm:0-0-0",
    LocationInfo = new LocationInfo
    {
        OrganizationalItem =
            new LinkToOrganizationalItemData { IdRef = "tcm:7-18-2" }
    },

    RootElementName = "Content",
    NamespaceUri = "customnamespaceuri",
    Xsd = xsd.ToString(SaveOptions.None)
};
schemas = (SchemaData)client.Create(schemas, new ReadOptions());
Response.Write("<BR>" +"new schema id"+ schemas.Id);
Response.Write("<BR>" + "new schema Name" + schemas.Title);
//schema created

Can anyone indicate how to create a Schema with default namespace URI?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:31:10+00:00Added an answer on June 1, 2026 at 2:31 pm

    The minimal code you need in order to create a Schema with Core Service is the following:

    using (var client = new SessionAwareCoreServiceClient(netTcpBinding, remoteAddress))
    {
        SchemaData schemaData = client.GetDefaultData(ItemType.Schema, folderId) as SchemaData;
        schemaData.Description = "description";
        schemaData = client.Save(schemaData, readOptions) as SchemaData;
        schemaData = client.CheckIn(schemaData.Id, readOptions) as SchemaData;
    
        Console.WriteLine("Schema: " + schemaData.LocationInfo.WebDavUrl);
    }
    

    The Schema will be created with the default namespace. In the case of this example, it will also not contain any fields, but that’s not what you were asking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on creating components using core services 2011 in SDL Tridion 2011
I'm creating a multi-tenant ASP.NET application using NHibernate (shared schema). I had intended to
I am creating an XML file in C# using a XSD Schema of an
I'm using Rails migrations to manage a database schema, and I'm creating a simple
I'm creating a custom tag system with php and mysql, using the Toxi mysql
I am using Fluent NHibernate and NHibernate.Core 3 beta 1. I have two classes:
I am creating a database by using following schema ...... using microsoft sql server....
I'm creating a bot using mongodb and mongoose.js. I've defined a schema and am
I'm an accomplished user of SQL; I'm confident creating schema and optimizing queries in
I am creating an xml schema, and I want to make sure that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.