Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have created an service which is exposed using mex endpoint but I am not able to expose it via WSDL?

Can someone please help..Thanks In advance.
My app config is.--

XML
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <services>
            <service behaviorConfiguration="serviceBehavior" name="GettingStartedLib.CalculatorService">
              <host>
                <baseAddresses>
                  <add baseAddress = "http://localhost:8000/GettingStartedLib/Service1/"/>
               
                </baseAddresses>
              </host>
                <endpoint address="http://localhost:8000/GettingStartedLib/Service1/"
                    binding="basicHttpBinding" bindingConfiguration="" name="httpendpoint"
                    contract="GettingStartedLib.ICalculator" />
                <endpoint address="http://localhost:8000/GettingStartedLib/Service1/mex" binding="mexHttpBinding" contract="IMetadataExchange" />
            </service>
        </services>
      <behaviors>
        <serviceBehaviors>
          <behavior name="serviceBehavior">
            
            <serviceMetadata httpGetEnabled="true"  />
          </behavior>
        </serviceBehaviors>
      </behaviors>
    </system.serviceModel>
</configuration>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900