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 8553957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:46:21+00:00 2026-06-11T14:46:21+00:00

I am using Tridion 2011 SP1 and am connecting to the CoreService using the

  • 0

I am using Tridion 2011 SP1 and am connecting to the CoreService using the code from here:

http://code.google.com/p/tridion-practice/wiki/GetCoreServiceClientWithoutConfigFile

But when i try to do any simple operation, such as this:

XElement resultXml = _coreService.GetListXml(publicationId, filterData);

I get the below error message.

“{“The message with Action ‘http://www.sdltridion.com/ContentManager/CoreService/2011/ICoreService/Create’ cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).”}”

Any Ideas?

Full code here:

            RepositoryItemsFilterData filterData = new RepositoryItemsFilterData();
            filterData.ItemTypes = new[]
                           {
                             ItemType.Component,
                             ItemType.Schema
                           };
            filterData.Recursive = true;

             ICoreService _coreService = GetNewClient(); 
             XElement resultXml = _coreService.GetListXml(publicationId, filterData);


       private ICoreService GetNewClient()
        {
            var binding = new BasicHttpBinding()
            {
                MaxBufferSize = 4194304, // 4MB
                MaxBufferPoolSize = 4194304,
                MaxReceivedMessageSize = 4194304,
                ReaderQuotas = new System.Xml.XmlDictionaryReaderQuotas()
                {
                    MaxStringContentLength = 4194304, // 4MB
                    MaxArrayLength = 4194304,
                },
                Security = new BasicHttpSecurity()
                {
                    Mode = BasicHttpSecurityMode.TransportCredentialOnly,
                    Transport = new HttpTransportSecurity()
                    {
                        ClientCredentialType = HttpClientCredentialType.Windows,
                    }
                }
            };
            _hostname = string.Format("{0}{1}{2}", _hostname.StartsWith("http") ? "" : "http://", _hostname, _hostname.EndsWith("/") ? "" : "/");
            var endpoint = new EndpointAddress(_hostname + "webservices/CoreService.svc/basicHttp_2010");
            ChannelFactory<ICoreService> factory = new ChannelFactory<ICoreService>(binding, endpoint);
            factory.Credentials.Windows.ClientCredential = new System.Net.NetworkCredential(_username, _password);
            return factory.CreateChannel();
        }

UPDATE:
Thanks for the response’s Nuno & Frank, i have it working now by adding a service reference, just a bit curious why my code didn’t work though because it creates the below bindings, which are, as far as i can see (and i may well have missed something) the same the code above

Nuno’s approach also works – thanks Nuno.


<basicHttpBinding>
<binding name="basicHttp_2010">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>

  • 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-11T14:46:22+00:00Added an answer on June 11, 2026 at 2:46 pm

    This is not the answer to your question, but here’s how I deal with Core Service clients nowadays:

    1. Add a reference to [Tridion]\bin\client\Tridion.ContentManager.CoreService.Client.dll
    2. Copy the contents of [Tridion]\bin\client\Tridion.ContentManager.CoreService.Client.dll.Config into my own app.config

    Then in code just do this:

    SessionAwareCoreServiceClient client = new SessionAwareCoreServiceClient("netTcp_2011");
    

    Done.

    PS – On Frank’s suggestion, added this to the Tridion Practice wiki: http://code.google.com/p/tridion-practice/wiki/GetCoreServiceClientWithConfigFile

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

Sidebar

Related Questions

I am using SDL tridion 2011 SP1. I want to get the list of
I am using SDL Tridion 2011 SP1. I need small clarification regarding multimedia schema
I am building a GUI extension using SDL Tridion 2011 SP1. I want to
Trying to reupload the DD4T.Templates.dll into Tridion 2011 SP1 using the TcmUploadAssembly in the
I am creating Schema using Core Service in SDL Tridion 2011 SP1. In the
I am working on an XSLT TBB in Tridion 2011 SP1, using the XSLT
I am using SDL Tridion 2011 SP1. I am creating the Dreamweaver TBB for
I am working on SDL Tridion 2011 SP1 with the XSLT Mediator from SDL
We are upgrading from Tridion 5.3 SP1 to Tridion 2011 SP1. We are doing
I am using C# code and Tridion(CMS) classes to fetch data from Tridion, below

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.