Click here to Skip to main content
Click here to Skip to main content

Tagged as

Adding a ajax/json endpoint to an existing WCF service

, 14 Apr 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Mixing and matching security to get something like this locked down and providing the desired exposure might be challenging but I didn't offer to solve that in the title, did I?                    <behavior...

Mixing and matching security to get something like this locked down and providing the desired exposure might be challenging but I didn't offer to solve that in the title, did I?

 



 <system.serviceModel>

    <behaviors>

      <endpointBehaviors>

        <behavior name="webScriptBehavior">

          <enableWebScript />

        </behavior>

      </endpointBehaviors>

      <serviceBehaviors>

        <behavior name="Salient.ScriptModel.Services.DualServiceBehavior">

          <serviceMetadata httpGetEnabled="true" />

          <serviceDebug includeExceptionDetailInFaults="false" />

        </behavior>

      </serviceBehaviors>

    </behaviors>

 

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

    <services>



      <service behaviorConfiguration="Salient.ScriptModel.Services.DualServiceBehavior" name="Salient.ScriptModel.Services.DualService">


        <endpoint address="" binding="wsHttpBinding" contract="Salient.ScriptModel.Services.IDualService"/>


        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />


        <endpoint address="json" behaviorConfiguration="webScriptBehavior" binding="webHttpBinding" contract="Salient.ScriptModel.Services.IDualService"/>


      </service>

    </services>

  </system.serviceModel>

 


Technorati tags: , ,

License

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

Share

About the Author

Sky Sanders
Software Developer (Senior) Salient Solutions
United States United States
My name is Sky Sanders and I am an end-to-end, front-to-back software solutions architect with more than 20 years experience in IT infrastructure and software development, the last 10 years being focused primarily on the Microsoft .NET platform.
 
My motto is 'I solve problems.' and I am currently available for hire.
 
I can be contacted at sky.sanders@gmail.com

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141220.1 | Last Updated 14 Apr 2010
Article Copyright 2010 by Sky Sanders
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid