title: Configuring WCF JSONP and SOAP Endpoints Listening at the same URI
body: <p>I JSONP enabled my WCF ServiceContract.  Client is successfully calling the JSONP Service (OperationContract).  I have a number of other OperationContracts (using the same ServiceContract) that I want to expose using basicHttpBinding (SOAP) endpoint - using the same URI.  I think my Service WebConfig is set up correctly.  When doing such a thing, should I be able to Add the Service Reference (proxy) using the VS "Add Service Reference" dialog window?  Or do I need to manually generate client code in codebehind?  If I need to manually do it, can anyone provide an example?  Or is my Service WebConfig not configured correctly?  I am calling the JSONP Service using this: <a href="http://Flixsit:1000/FlixsitWebServices.svc/jsonp" rel="nofollow">http://Flixsit:1000/FlixsitWebServices.svc/jsonp</a></p>
  
  <p>Thanks so much...</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /&gt;
  &lt;behaviors&gt;
    &lt;endpointBehaviors&gt;
      &lt;behavior name="webHttpBehavior"&gt;
        &lt;webHttp /&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="DefaultBehaviors"&gt;          
        &lt;serviceMetadata httpGetEnabled="true" /&gt;          
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;bindings&gt;
    &lt;webHttpBinding&gt;
      &lt;binding name="JSONPBinding" crossDomainScriptAccessEnabled="true" /&gt;
    &lt;/webHttpBinding&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="SOAPBinding" /&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;services&gt;
    &lt;service name="Flixsit.Services.FlixsitWebServices" behaviorConfiguration="DefaultBehaviors"&gt;
      &lt;clear /&gt;
      &lt;endpoint name="JSONPEndPoint" address="jsonp"
                                     binding="webHttpBinding"
                                     bindingConfiguration="JSONPBinding"
                                     contract="Flixsit.Services.IFlixsitWebServices"
                                     behaviorConfiguration="webHttpBehavior" /&gt;
      &lt;endpoint name="HttpEndPoint"  address=""
                                     binding="basicHttpBinding"
                                     bindingConfiguration="SOAPBinding"
                                     contract="Flixsit.Services.IFlixsitWebServices" /&gt;
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress="http://Flixsit:1000/FlixsitWebServices.svc" /&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
    &lt;/service&gt;
  &lt;/services&gt;    
  </code></pre>
  
  <p></p>