title: After creating a wcf service how do I tell whether its restful or soap from the wsdl?
body: <p>I created a service and I'm presented with a page saying:</p>
  
  <blockquote>
    <p>You have created a service.</p>
    
    <p>To test this service, you will need to
    create a client and use it to call the
    service. You can do this using the
    svcutil.exe tool from the command line
    with the following syntax:</p>
  </blockquote>
  
  <p>But how do I tell if its a SOAP or a REST service from that? How would I tell from the wsdl etc?</p>
  
  <p>Service config:</p>
  
  <pre><code>&lt;services&gt; 
      &lt;service name="VLSContentService"
               behaviorConfiguration="VLSContentServiceBehaviour" &gt; 
          &lt;endpoint name="rest" 
              address="" 
              behaviorConfiguration="VLSContentServiceEndpointBehaviour" 
              binding="webHttpBinding" 
              contract="IVLSContentServiceREST" /&gt; 
          &lt;endpoint name="soap" 
              address="soap" 
              binding="basicHttpBinding" 
              contract="IVLSContentServiceREST"/&gt; 
      &lt;/service&gt; 
  &lt;/services&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>Hi Mark,</p>
  
  <p>My config is:</p>
  
  <pre><code> &lt;services&gt;
        &lt;service behaviorConfiguration="VLSContentServiceBehaviour" name="VLSContentService"&gt;
          &lt;endpoint name="rest" address="" behaviorConfiguration="VLSContentServiceEndpointBehaviour" binding="webHttpBinding" contract="IVLSContentServiceREST" /&gt;
          &lt;endpoint name="soap" address="soap" binding="basicHttpBinding" contract="IVLSContentServiceREST"/&gt;
        &lt;/service&gt;
      &lt;/services&gt;
  </code></pre>
  
  <p>So basically I browse to the .svc file and I see a link for a wsdl. But how do I know if thats for the SOAP or REST endpoint. Have I even configured it correctly?</p>
  
  <p>Thanks</p>
  
  <p>UPDATE: 17:49 (UK TIME)</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  
    &lt;!---Add the service--&gt;
    &lt;services&gt;
      &lt;service behaviorConfiguration="VLSContentServiceBehaviour" name="VLSContentService"&gt;
         &lt;endpoint name="rest" 
             address="" 
             behaviorConfiguration="VLSContentServiceEndpointBehaviour" 
             binding="webHttpBinding" 
             contract="IVLSContentServiceREST" /&gt;
      &lt;/service&gt;
   &lt;/services&gt;
   &lt;!---Add the behaviours--&gt;
   &lt;behaviors&gt;
      &lt;serviceBehaviors&gt;
         &lt;behavior name="VLSContentServiceBehaviour"&gt;
            &lt;serviceMetadata httpGetEnabled="true" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
         &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
      &lt;endpointBehaviors&gt;
         &lt;behavior name="VLSContentServiceEndpointBehaviour"&gt;
           &lt;webHttp /&gt;
         &lt;/behavior&gt;
      &lt;/endpointBehaviors&gt;
    &lt;/behaviors&gt;
    &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="false" /&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p><strong>marc_s UPDATE: 18:22 (UK TIME)</strong></p>
  
  <p>Pete, try this - no metadata publishing, nothing - just <code>webHttpBinding</code> - you should <em>not</em> see any WSDL anymore...</p>
  
  <pre><code>&lt;system.serviceModel&gt;
     &lt;services&gt;
        &lt;service name="VLSContentService"&gt;
            &lt;endpoint name="rest" 
                address="" 
                binding="webHttpBinding" 
                contract="IVLSContentServiceREST" /&gt;
        &lt;/service&gt;
     &lt;/services&gt;
     &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="false" /&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>