Forum Discussion

RokeJulianLockhart's avatar
RokeJulianLockhart
Brass Contributor
May 11, 2023

I saw an internal publishing page when I attempted to log in to Outlook.com.

Screenshot

I attempted to log in to https://login.live.com/login.srf. Instead, after being asked to change my recovery information (as does occur periodically) was redirected to the undermentioned:

 

 

Source

The content of the downloaded webpage is undermentioned:

 

 

<div id="content">
<p class="heading1">Service</p>
<br>
<p class="intro">This is a Windows© Communication Foundation service.<br><br><b>Metadata publishing for this service is currently disabled.</b><br><br>If you have access to the service, you can enable metadata publishing by completing the following steps to modify your web or application configuration file:<br><br>1. Create the following service behavior configuration, or add the &lt;serviceMetadata&gt; element to an existing service behavior configuration:</p>
<pre><font color="blue">&lt;<font color="darkred">behaviors</font>&gt;</font>
<font color="blue">    &lt;<font color="darkred">serviceBehaviors</font>&gt;</font>
<font color="blue">        &lt;<font color="darkred">behavior </font><font color="red">name</font>=<font color="black">"</font>MyServiceTypeBehaviors<font color="black">" </font>&gt;</font>
<font color="blue">            &lt;<font color="darkred">serviceMetadata </font><font color="red">httpGetEnabled</font>=<font color="black">"</font>true<font color="black">" </font>/&gt;</font>
<font color="blue">        &lt;<font color="darkred">/behavior</font>&gt;</font>
<font color="blue">    &lt;<font color="darkred">/serviceBehaviors</font>&gt;</font>
<font color="blue">&lt;<font color="darkred">/behaviors</font>&gt;</font>
</pre>
<p class="intro">2. Add the behavior configuration to the service:</p>
<pre><font color="blue">&lt;<font color="darkred">service </font><font color="red">name</font>=<font color="black">"</font><i>MyNamespace.MyServiceType</i><font color="black">" </font><font color="red">behaviorConfiguration</font>=<font color="black">"</font><i>MyServiceTypeBehaviors</i><font color="black">" </font>&gt;</font>
</pre>
<p class="intro">Note: the service name must match the configuration name for the service implementation.<br><br>3. Add the following endpoint to your service configuration:</p>
<pre><font color="blue">&lt;<font color="darkred">endpoint </font><font color="red">contract</font>=<font color="black">"</font>IMetadataExchange<font color="black">" </font><font color="red">binding</font>=<font color="black">"</font>mexHttpBinding<font color="black">" </font><font color="red">address</font>=<font color="black">"</font>mex<font color="black">" </font>/&gt;</font>
</pre>

<p class="intro">Note: your service must have an http base address to add this endpoint.<br><br>The following is an example service configuration file with metadata publishing enabled:</p>
<pre><font color="blue">&lt;<font color="darkred">configuration</font>&gt;</font>
<font color="blue">    &lt;<font color="darkred">system.serviceModel</font>&gt;</font>
 
<font color="blue">        &lt;<font color="darkred">services</font>&gt;</font>
<font color="blue">            &lt;!-- <font color="green">Note: the service name must match the configuration name for the service implementation.</font> --&gt;</font>
<font color="blue">            &lt;<font color="darkred">service </font><font color="red">name</font>=<font color="black">"</font><i>MyNamespace.MyServiceType</i><font color="black">" </font><font color="red">behaviorConfiguration</font>=<font color="black">"</font><i>MyServiceTypeBehaviors</i><font color="black">" </font>&gt;</font>
<font color="blue">                &lt;!-- <font color="green">Add the following endpoint. </font> --&gt;</font>
<font color="blue">                &lt;!-- <font color="green">Note: your service must have an http base address to add this endpoint.</font> --&gt;</font>
<font color="blue">                &lt;<font color="darkred">endpoint </font><font color="red">contract</font>=<font color="black">"</font>IMetadataExchange<font color="black">" </font><font color="red">binding</font>=<font color="black">"</font>mexHttpBinding<font color="black">" </font><font color="red">address</font>=<font color="black">"</font>mex<font color="black">" </font>/&gt;</font>
<font color="blue">            &lt;<font color="darkred">/service</font>&gt;</font>
<font color="blue">        &lt;<font color="darkred">/services</font>&gt;</font>
 
<font color="blue">        &lt;<font color="darkred">behaviors</font>&gt;</font>
<font color="blue">            &lt;<font color="darkred">serviceBehaviors</font>&gt;</font>
<font color="blue">                &lt;<font color="darkred">behavior </font><font color="red">name</font>=<font color="black">"</font><i>MyServiceTypeBehaviors</i><font color="black">" </font>&gt;</font>
<font color="blue">                    &lt;!-- <font color="green">Add the following element to your service behavior configuration.</font> --&gt;</font>
<font color="blue">                    &lt;<font color="darkred">serviceMetadata </font><font color="red">httpGetEnabled</font>=<font color="black">"</font>true<font color="black">" </font>/&gt;</font>
<font color="blue">                &lt;<font color="darkred">/behavior</font>&gt;</font>
<font color="blue">            &lt;<font color="darkred">/serviceBehaviors</font>&gt;</font>
<font color="blue">        &lt;<font color="darkred">/behaviors</font>&gt;</font>
 
<font color="blue">    &lt;<font color="darkred">/system.serviceModel</font>&gt;</font>
<font color="blue">&lt;<font color="darkred">/configuration</font>&gt;</font>
</pre>
<p class="intro">For more information on publishing metadata please see the following documentation: <a href="http://go.microsoft.com/fwlink/?LinkId=65455">http://go.microsoft.com/fwlink/?LinkId=65455</a>.</p>
</div>

 

Share

Resources