Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF - adding service tag leads to 415 Unsupported Media Type
    primarykey
    data
    text
    <p>I have a web service. I am using an svc file (WSIntegrationEpis.svc), with the following content:</p> <pre><code>&lt;% @ServiceHost Service="XXX.YYY.WSIntegration.EPis.WSEPis" %&gt; </code></pre> <p>If I have nothing in system.serviceModel in my web.config the web service works fine. However once I try to add the service tag the server starts to return <code>415 Unsupported Media Type</code></p> <p>The content of the service tag:</p> <pre><code>&lt;services&gt; &lt;service name="XXX.YYY.WSIntegration.EPis.WSEPis" behaviorConfiguration="EPis.WSEPis.DefaultBehavior"&gt; &lt;endpoint address="" binding="wsHttpBinding" contract="XXX.YYY.WSIntegration.EPis.IWSEPis"/&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p>The behavior section is standard one:</p> <pre><code> &lt;behavior name="EPis.WSEPis.DefaultBehavior"&gt; &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt; &lt;serviceMetadata httpGetEnabled="true"/&gt; &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --&gt; &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt; &lt;/behavior&gt; </code></pre> <p>Notes:</p> <p>1/ If I rename the name of the service (so the names in svc and service tag are different), the WS starts working.</p> <p>2/ If I remove the behaviorConfiguration attribute form the service tag it still does not work.</p> <p>3/ If I add <code>bindingConfiguration="WSHttpBinding_IWSEPis"</code> as attribute to service tag (and in binding I specify correct binding configuration), the web service stilll does nto work.</p> <p>What I should change so that I will be bale to specify parameters in the web.config for my web.service?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload