Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

404 – Error: Getting Empty response from WCF Service is giving Error in Azure

From Azure it is giving, when I try to post to: https://wcf/service.svc/json/DoAction it comes back with an empty response.

Below is the webconfig

 <system.serviceModel>
  <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  <services>
    <service name="SampleService" behaviorConfiguration="ChallengeBehavior">
      <endpoint address="" binding="wsHttpBinding" bindingConfiguration="ChallengeMessageEncoding" contract="IService123" behaviorConfiguration="SoapServiceBehavior" />
      <endpoint address="/json" binding="webHttpBinding" bindingConfigu**strong text**ration="RestServiceMessageEncoding" contract="ISampleService"  behaviorConfiguration="RestServiceBehavior" />
        </service>
      </services>
      <behaviors>
        <endpointBehaviors>
          <behavior name="RestServiceBehavior">
            <webHttp defaultOutgoingResponseFormat="Json" automaticFormatSelectionEnabled="true" />
          </behavior>
          <behavior name="SoapServiceBehavior">
          </behavior>
        </endpointBehaviors>
      </behaviors>
      <bindings>
        <webHttpBinding>
          <binding name="RestServiceMessageEncoding">
            <security mode="None">
            </security>
          </binding>
        </webHttpBinding>
        <wsHttpBinding>
          <binding name="ChallengeMessageEncoding">
            <security mode="None">
              <transport clientCredentialType="None" proxyCredentialType="None" />
              <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
            </security>
          </binding>
        </wsHttpBinding>
      </bindings>
    </system.serviceModel>

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Enable the features of WCF in Add or remove programs in your local or in VM of Azure.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading