• Blog
  • Info Support
  • Career
  • Training
  • International Group
  • Info Support
  • Blog
  • Career
  • Training
  • International Group
  • Search
logo InfoSupport
  • Latest blogs
  • Popular blogs
  • Experts
      • Alles
      • Bloggers
      • Speakers
  • Meet us
  • About us
    • nl
    • en
    • .NET
    • Advanced Analytics
    • Agile
    • Akka
    • Alexa
    • Algorithms
    • Api's
    • Architectuur
    • Artificial Intelligence
    • ATDD
    • Augmented Reality
    • AWS
    • Azure
    • Big Data
    • Blockchain
    • Business Intelligence
    • Cloud
    • Code Combat
    • Cognitive Services
    • Communicatie
    • Containers
    • Continuous Delivery
    • CQRS
    • Cyber Security
    • Dapr
    • Data
    • Data & Analystics
    • Data Science
    • Data Warehousing
    • Databricks
    • DevOps
    • Digital Days
    • Docker
    • eHealth
    • Enterprise Architecture
    • Hacking
    • Infrastructure & Hosting
    • Innovatie
    • Integration
    • Internet of Things
    • Java
    • Machine Learning
    • Microservices
    • Microsoft
    • Microsoft Bot Framework
    • Microsoft Data Platform
    • Mobile Development
    • Mutation Testing
    • Open source
    • Pepper
    • Power BI
    • Privacy & Ethiek
    • Python
    • Quality Assistance & Test
    • Quality Assurance & Test
    • Requirements Management
    • Scala
    • Scratch
    • Security
    • SharePoint
    • Software Architecture
    • Software development
    • Software Factory
    • SQL Server
    • SSL
    • Start-up
    • Startup thinking
    • Stryker
    • Test Quality
    • Testing
    • TLS
    • TypeScript
    • Various
    • Web Development
    • Web-scale IT
    • Xamarin
    • Alles
    • Bloggers
    • Speakers
Home » Where did the Metadata Exchange Point (MEX) go in WCF RC1?
  • Where did the Metadata Exchange Point (MEX) go in WCF RC1?

    • By Marcel de Vries
    • .NET 15 years ago
    • .NET 0 comments
    • .NET .NET
    Where did the Metadata Exchange Point (MEX) go in WCF RC1?

    Last Wednesday evening I joined a Presentation of a colleague of mine (Gert Jan Timmerman) on WCF. I already had some extensive training on WCF that was provided by Microsoft itself here in the Netherlands, but I attended the session just to see if he had some new insights into this technology. As it appeared he actually did J My Colleague had decided to give the presentation based on the .NET 3.0 RC1 that MS released early Wednesday morning. The RC1 was only available a few hours before the presentation, but since this was an in company presentation he decided it would be fun to work with the latest greatest stuff.

    That turned out to be quite a challenge because the RC has undergone the by now famous security push. You know the credo, ship with secure defaults J This is where security will win above usability and that might be frustrating sometimes. (See e.g. my post on the ASP.NET cache object)

    Well the same goes here as well. Because we got challenged with the fact that we could not get information from the Metadata Exchange Point(MEX) anymore.

    While it was turned off by default in the earliest bits, it was on by default since Beta 1.Well as it turns out Metadata is now off by default. Also HTTP GET is turned off by default.

    So for a service to expose metadata, the ServiceMetadataBehavior must be configured on the service by hand. Once you have configured the behavior, you can publish metadata by configuring an endpoint to expose the IMetadataExchange contract.  To help you out how to configure the MEX endpoint to be available again I have provided a sample configuration that will expose a MEX endpoint at http://localhost:8000/MyService/mex and also enables WSDL requests over HTTP GET at http://localhost:8000/MyService?wsdl

    (b.t.w. have a good look at the additional baseAddresses tag show in the example. This is on feature request heard many times, and yes it is now possible to configure a base address for your services)

    <system.serviceModel>

      <services>

         <service name="MyService"  behaviorConfiguration="SomeServiceBehavior">

            <host>

              <baseAddresses>

                <add baseAddress="http://localhost:8000/MyService"/>

              </baseAddresses>

            </host>

            <endpoint address=""

                             binding="wsHttpBinding"

                             contract="MyService.ISomeService" />

            <endpoint address="mex"

                            binding="mexHttpBinding"

                            contract="IMetadataExchange" />

          </service>

        </services>

        <behaviors>

          <serviceBehaviors>

            <behavior name="SomeServiceBehavior">

              <serviceMetadata httpGetEnabled="True"/>

              <serviceDebug includeExceptionDetailInFaults="False" />

            </behavior>

          </serviceBehaviors>

        </behaviors>

      </system.serviceModel>

    Share this

Marcel de Vries

View profile

Related IT training

Go to training website

Related Consultancy solutions

Go to infosupport.com

Related blogs

  • Innovative patterns in software quality management

    Innovative patterns in software quality management Tom van den Berg - 1 month ago

  • Developing a Service Fabric service using another host

    Developing a Service Fabric service using another host Tim van de Lockand - 5 months ago

  • Adding a package to your private WinGet.RestSource feed…

    Adding a package to your private WinGet.RestSource feed… Léon Bouquiet - 10 months ago

Related downloads

  • Beslisboom voor een rechtmatig ‘kopietje productie’

  • Klantreferentie: Remmicom zet wetgeving om in intellige…

  • Klantreferentie RDW: Samenwerken voor veilig en vertrou…

  • Klantreferentie BeFrank: Strategische IT voor een innov…

  • Wie durft te experimenteren met data in de zorg?

Related videos

  • mijnverzekeringenopeenrij.nl

    mijnverzekeringenopeenrij.nl

  • Winnaar | Innovation Projects 2017

    Winnaar | Innovation Projects 2017

  • Explore | Info Support & HAN & Poliskluis

    Explore | Info Support & HAN & Poliskluis

  • LifeApps bij HagaZiekenhuis

    LifeApps bij HagaZiekenhuis

  • Info Support | Bedrijfsfilm

    Info Support | Bedrijfsfilm

Nieuwsbrief

* verplichte velden

Contact

  • Head office NL
  • Kruisboog 42
  • 3905 TG Veenendaal
  • T +31 318 552020
  • Call
  • Mail
  • Directions
  • Head office BE
  • Generaal De Wittelaan 17
  • bus 30 2800 Mechelen
  • T +32 15 286370
  • Call
  • Mail
  • Directions

Follow us

  • Twitter
  • Facebook
  • Linkedin
  • Youtube

Newsletter

Sign in

Extra

  • Media Library
  • Disclaimer
  • Algemene voorwaarden
  • ISHBS Webmail
  • Extranet
Beheer cookie toestemming
Deze website maakt gebruik van Functionele en Analytische cookies voor website optimalisatie en statistieken.
Functioneel
Altijd actief
De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.
Voorkeuren
De technische opslag of toegang is noodzakelijk voor het legitieme doel voorkeuren op te slaan die niet door de abonnee of gebruiker zijn aangevraagd.
Statistieken
De technische opslag of toegang die uitsluitend voor statistische doeleinden wordt gebruikt. De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door uw Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.
Marketing
De technische opslag of toegang is nodig om gebruikersprofielen op te stellen voor het verzenden van reclame, of om de gebruiker op een website of over verschillende websites te volgen voor soortgelijke marketingdoeleinden.
Beheer opties Beheer diensten Beheer leveranciers Lees meer over deze doeleinden
Voorkeuren
{title} {title} {title}