Hosting WCF SOAP, and WCF REST service as Azure App ServicesBest Practices for securing a REST API / web serviceSOAP or REST for Web Services?REST / SOAP endpoints for a WCF serviceRepresentational state transfer (REST) and Simple Object Access Protocol (SOAP)WCF endpoint address, default still available after specifying an addressPowershell: Error consuming WCF services with MTOM message encodingInvoke soap wcf service in Fiddler like in Wcf test clientexposing net.tcp endpointSOAP vs REST (differences)How to convert a WCF service from SOAP to REST?

How can I get edges to bend to avoid crossing?

What are good ways to spray paint a QR code on a footpath?

Prime parity peregrination

Why does a brace command group need spaces after the opening brace in POSIX Shell Grammar?

What is "oversubscription" in Networking?

How exactly is a normal force exerted, at the molecular level?

In native German words, is Q always followed by U, as in English?

Can a single server be associated with multiple domains?

Should I report a leak of confidential HR information?

Using aluminium busbar/cables in an aircraft instead of copper

What is the difference between x RadToDeg cos x div and COSC?

What does grep -v "grep" mean and do?

Can I ask to speak to my future colleagues before accepting an offer?

How to prove two matrices are not similar when the geometric multiplicity of these matrixes are not equal

Mean Value Theorem: Continuous or Defined?

Is there a way for presidents to legally extend their terms beyond the maximum of four years?

How did researchers use to find articles before the Internet and the computer era?

What is the line crossing the Pacific Ocean that is shown on maps?

Most importants new papers in computational complexity

3D nonogram, beginner's edition

I hit a pipe with a mower and now it won't turn

What is the olden name for sideburns?

Did Wakanda officially get the stuff out of Bucky's head?

What is a macro? Difference between macro and function?



Hosting WCF SOAP, and WCF REST service as Azure App Services


Best Practices for securing a REST API / web serviceSOAP or REST for Web Services?REST / SOAP endpoints for a WCF serviceRepresentational state transfer (REST) and Simple Object Access Protocol (SOAP)WCF endpoint address, default still available after specifying an addressPowershell: Error consuming WCF services with MTOM message encodingInvoke soap wcf service in Fiddler like in Wcf test clientexposing net.tcp endpointSOAP vs REST (differences)How to convert a WCF service from SOAP to REST?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am trying to host existing WCF service and a WCF REST service as a Azure App Services. I have used the Publish option from Visual studio like in the post Here



I am able to browse to the hosted URL for the WCF SOAP site and the WCF REST site, but when i add a service reference for the WCF SOAP site and call a method on it i get below error



Same with the WCF rest service when i call a REST method, i get 404 now found error.



There was no endpoint listening at https://wcfservice.azurewebsites.net/WebService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.



From the failed request log i.e w3svcxxxx log, it says the request https://WcfService:80/Webservice.svc 404 not found status.



For the WCF Rest Service
https://WcfService:80/RESTservice.svc/GetData 404 not found status.



Why is the service internally calling a https://WcfService:80, would this require an configuration to setup. Tried to search around to see if i could find any help around this but could not find much.



Also, i have another WCF site that i had deployed to the App Services, which is setup with a basicHttpBinding and this site worked fine and i was able to get data using it.



Below is the web.config setting on the web site, i am using wsHttpBinging for the WCF SOAP service



 <system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="WebServiceOnline">
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<!-- 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 -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="AjaxBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
<service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
<endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
<endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
<identity>
<dns value="locahost" />
</identity>
</endpoint>
<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="wsSecurityByTransport">
<security mode="Transport">
<transport clientCredentialType="None" />
<message clientCredentialType="Certificate" />
</security>
</binding>
</wsHttpBinding>
</bindings>











share|improve this question






























    0















    I am trying to host existing WCF service and a WCF REST service as a Azure App Services. I have used the Publish option from Visual studio like in the post Here



    I am able to browse to the hosted URL for the WCF SOAP site and the WCF REST site, but when i add a service reference for the WCF SOAP site and call a method on it i get below error



    Same with the WCF rest service when i call a REST method, i get 404 now found error.



    There was no endpoint listening at https://wcfservice.azurewebsites.net/WebService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
    The remote server returned an error: (404) Not Found.



    From the failed request log i.e w3svcxxxx log, it says the request https://WcfService:80/Webservice.svc 404 not found status.



    For the WCF Rest Service
    https://WcfService:80/RESTservice.svc/GetData 404 not found status.



    Why is the service internally calling a https://WcfService:80, would this require an configuration to setup. Tried to search around to see if i could find any help around this but could not find much.



    Also, i have another WCF site that i had deployed to the App Services, which is setup with a basicHttpBinding and this site worked fine and i was able to get data using it.



    Below is the web.config setting on the web site, i am using wsHttpBinging for the WCF SOAP service



     <system.serviceModel>
    <behaviors>
    <serviceBehaviors>
    <behavior name="WebServiceOnline">
    <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
    <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
    <!-- 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 -->
    <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
    </serviceBehaviors>
    <endpointBehaviors>
    <behavior name="AjaxBehavior">
    <webHttp />
    </behavior>
    </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    <services>
    <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
    <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    </service>
    <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
    <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
    <identity>
    <dns value="locahost" />
    </identity>
    </endpoint>
    <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
    </service>
    </services>
    <bindings>
    <wsHttpBinding>
    <binding name="wsSecurityByTransport">
    <security mode="Transport">
    <transport clientCredentialType="None" />
    <message clientCredentialType="Certificate" />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>











    share|improve this question


























      0












      0








      0








      I am trying to host existing WCF service and a WCF REST service as a Azure App Services. I have used the Publish option from Visual studio like in the post Here



      I am able to browse to the hosted URL for the WCF SOAP site and the WCF REST site, but when i add a service reference for the WCF SOAP site and call a method on it i get below error



      Same with the WCF rest service when i call a REST method, i get 404 now found error.



      There was no endpoint listening at https://wcfservice.azurewebsites.net/WebService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
      The remote server returned an error: (404) Not Found.



      From the failed request log i.e w3svcxxxx log, it says the request https://WcfService:80/Webservice.svc 404 not found status.



      For the WCF Rest Service
      https://WcfService:80/RESTservice.svc/GetData 404 not found status.



      Why is the service internally calling a https://WcfService:80, would this require an configuration to setup. Tried to search around to see if i could find any help around this but could not find much.



      Also, i have another WCF site that i had deployed to the App Services, which is setup with a basicHttpBinding and this site worked fine and i was able to get data using it.



      Below is the web.config setting on the web site, i am using wsHttpBinging for the WCF SOAP service



       <system.serviceModel>
      <behaviors>
      <serviceBehaviors>
      <behavior name="WebServiceOnline">
      <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
      <!-- 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 -->
      <serviceDebug includeExceptionDetailInFaults="false" />
      </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
      <behavior name="AjaxBehavior">
      <webHttp />
      </behavior>
      </endpointBehaviors>
      </behaviors>
      <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
      <services>
      <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
      <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
      <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
      <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
      <identity>
      <dns value="locahost" />
      </identity>
      </endpoint>
      <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
      </service>
      </services>
      <bindings>
      <wsHttpBinding>
      <binding name="wsSecurityByTransport">
      <security mode="Transport">
      <transport clientCredentialType="None" />
      <message clientCredentialType="Certificate" />
      </security>
      </binding>
      </wsHttpBinding>
      </bindings>











      share|improve this question
















      I am trying to host existing WCF service and a WCF REST service as a Azure App Services. I have used the Publish option from Visual studio like in the post Here



      I am able to browse to the hosted URL for the WCF SOAP site and the WCF REST site, but when i add a service reference for the WCF SOAP site and call a method on it i get below error



      Same with the WCF rest service when i call a REST method, i get 404 now found error.



      There was no endpoint listening at https://wcfservice.azurewebsites.net/WebService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
      The remote server returned an error: (404) Not Found.



      From the failed request log i.e w3svcxxxx log, it says the request https://WcfService:80/Webservice.svc 404 not found status.



      For the WCF Rest Service
      https://WcfService:80/RESTservice.svc/GetData 404 not found status.



      Why is the service internally calling a https://WcfService:80, would this require an configuration to setup. Tried to search around to see if i could find any help around this but could not find much.



      Also, i have another WCF site that i had deployed to the App Services, which is setup with a basicHttpBinding and this site worked fine and i was able to get data using it.



      Below is the web.config setting on the web site, i am using wsHttpBinging for the WCF SOAP service



       <system.serviceModel>
      <behaviors>
      <serviceBehaviors>
      <behavior name="WebServiceOnline">
      <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
      <!-- 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 -->
      <serviceDebug includeExceptionDetailInFaults="false" />
      </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
      <behavior name="AjaxBehavior">
      <webHttp />
      </behavior>
      </endpointBehaviors>
      </behaviors>
      <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
      <services>
      <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
      <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
      <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
      <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
      <identity>
      <dns value="locahost" />
      </identity>
      </endpoint>
      <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
      </service>
      </services>
      <bindings>
      <wsHttpBinding>
      <binding name="wsSecurityByTransport">
      <security mode="Transport">
      <transport clientCredentialType="None" />
      <message clientCredentialType="Certificate" />
      </security>
      </binding>
      </wsHttpBinding>
      </bindings>








      c# rest azure wcf azure-web-sites






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 14:17







      Arvind

















      asked Mar 25 at 12:28









      ArvindArvind

      6123 gold badges18 silver badges40 bronze badges




      6123 gold badges18 silver badges40 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          1














          <services> <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
          <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
          <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
          <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
          <identity>
          <dns value="locahost" />
          </identity>
          </endpoint>
          <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /> </service> </services>


          There may be an issue in the configuration file. We could expose the additional service endpoint for wshttpbinding.
          Here is my configuration, and it works properly over Azure.



          <system.serviceModel>
          <services>
          <service behaviorConfiguration="mybehavior" name="WcfService1.Service1">
          <!--http, https are all configurated-->
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="mybinding"></endpoint>
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="com"></endpoint>
          <endpoint address="myservice" binding="wsHttpBinding" contract="WcfService1.IService1"></endpoint>
          <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint>
          </service>
          </services>
          <bindings>
          <webHttpBinding>
          <binding name="mybinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" sendTimeout="00:10:00" receiveTimeout="00:10:00">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
          <security mode="Transport">
          <transport clientCredentialType="None"></transport>
          </security>
          </binding>
          <binding name="com">
          <security mode="None"></security>
          </binding>
          </webHttpBinding>
          </bindings>


          Result
          enter image description here
          Feel free to let me know if there is anything I can help with.






          share|improve this answer























          • Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

            – Arvind
            Mar 26 at 12:27







          • 1





            We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

            – Abraham Qian
            Mar 26 at 12:32











          • Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

            – Arvind
            Mar 26 at 14:05










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337794%2fhosting-wcf-soap-and-wcf-rest-service-as-azure-app-services%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          <services> <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
          <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
          <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
          <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
          <identity>
          <dns value="locahost" />
          </identity>
          </endpoint>
          <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /> </service> </services>


          There may be an issue in the configuration file. We could expose the additional service endpoint for wshttpbinding.
          Here is my configuration, and it works properly over Azure.



          <system.serviceModel>
          <services>
          <service behaviorConfiguration="mybehavior" name="WcfService1.Service1">
          <!--http, https are all configurated-->
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="mybinding"></endpoint>
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="com"></endpoint>
          <endpoint address="myservice" binding="wsHttpBinding" contract="WcfService1.IService1"></endpoint>
          <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint>
          </service>
          </services>
          <bindings>
          <webHttpBinding>
          <binding name="mybinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" sendTimeout="00:10:00" receiveTimeout="00:10:00">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
          <security mode="Transport">
          <transport clientCredentialType="None"></transport>
          </security>
          </binding>
          <binding name="com">
          <security mode="None"></security>
          </binding>
          </webHttpBinding>
          </bindings>


          Result
          enter image description here
          Feel free to let me know if there is anything I can help with.






          share|improve this answer























          • Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

            – Arvind
            Mar 26 at 12:27







          • 1





            We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

            – Abraham Qian
            Mar 26 at 12:32











          • Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

            – Arvind
            Mar 26 at 14:05















          1














          <services> <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
          <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
          <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
          <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
          <identity>
          <dns value="locahost" />
          </identity>
          </endpoint>
          <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /> </service> </services>


          There may be an issue in the configuration file. We could expose the additional service endpoint for wshttpbinding.
          Here is my configuration, and it works properly over Azure.



          <system.serviceModel>
          <services>
          <service behaviorConfiguration="mybehavior" name="WcfService1.Service1">
          <!--http, https are all configurated-->
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="mybinding"></endpoint>
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="com"></endpoint>
          <endpoint address="myservice" binding="wsHttpBinding" contract="WcfService1.IService1"></endpoint>
          <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint>
          </service>
          </services>
          <bindings>
          <webHttpBinding>
          <binding name="mybinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" sendTimeout="00:10:00" receiveTimeout="00:10:00">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
          <security mode="Transport">
          <transport clientCredentialType="None"></transport>
          </security>
          </binding>
          <binding name="com">
          <security mode="None"></security>
          </binding>
          </webHttpBinding>
          </bindings>


          Result
          enter image description here
          Feel free to let me know if there is anything I can help with.






          share|improve this answer























          • Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

            – Arvind
            Mar 26 at 12:27







          • 1





            We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

            – Abraham Qian
            Mar 26 at 12:32











          • Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

            – Arvind
            Mar 26 at 14:05













          1












          1








          1







          <services> <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
          <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
          <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
          <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
          <identity>
          <dns value="locahost" />
          </identity>
          </endpoint>
          <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /> </service> </services>


          There may be an issue in the configuration file. We could expose the additional service endpoint for wshttpbinding.
          Here is my configuration, and it works properly over Azure.



          <system.serviceModel>
          <services>
          <service behaviorConfiguration="mybehavior" name="WcfService1.Service1">
          <!--http, https are all configurated-->
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="mybinding"></endpoint>
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="com"></endpoint>
          <endpoint address="myservice" binding="wsHttpBinding" contract="WcfService1.IService1"></endpoint>
          <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint>
          </service>
          </services>
          <bindings>
          <webHttpBinding>
          <binding name="mybinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" sendTimeout="00:10:00" receiveTimeout="00:10:00">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
          <security mode="Transport">
          <transport clientCredentialType="None"></transport>
          </security>
          </binding>
          <binding name="com">
          <security mode="None"></security>
          </binding>
          </webHttpBinding>
          </bindings>


          Result
          enter image description here
          Feel free to let me know if there is anything I can help with.






          share|improve this answer













          <services> <service name="WcfService.WebServiceOnline" behaviorConfiguration="WebServiceOnline">
          <endpoint binding="wsHttpBinding" bindingName="wsSecurityByTransport" contract="WcfService.IWebServiceForOnline" />
          <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service name="WcfService.RESTService" behaviorConfiguration="WebServiceOnline">
          <endpoint address="" binding="webHttpBinding" contract="WcfService.IRESTService" name="RunningBarbus.Services.RunningBarbusService" behaviorConfiguration="AjaxBehavior">
          <identity>
          <dns value="locahost" />
          </identity>
          </endpoint>
          <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /> </service> </services>


          There may be an issue in the configuration file. We could expose the additional service endpoint for wshttpbinding.
          Here is my configuration, and it works properly over Azure.



          <system.serviceModel>
          <services>
          <service behaviorConfiguration="mybehavior" name="WcfService1.Service1">
          <!--http, https are all configurated-->
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="mybinding"></endpoint>
          <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="com"></endpoint>
          <endpoint address="myservice" binding="wsHttpBinding" contract="WcfService1.IService1"></endpoint>
          <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint>
          </service>
          </services>
          <bindings>
          <webHttpBinding>
          <binding name="mybinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" sendTimeout="00:10:00" receiveTimeout="00:10:00">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
          <security mode="Transport">
          <transport clientCredentialType="None"></transport>
          </security>
          </binding>
          <binding name="com">
          <security mode="None"></security>
          </binding>
          </webHttpBinding>
          </bindings>


          Result
          enter image description here
          Feel free to let me know if there is anything I can help with.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 10:18









          Abraham QianAbraham Qian

          1,4641 gold badge1 silver badge11 bronze badges




          1,4641 gold badge1 silver badge11 bronze badges












          • Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

            – Arvind
            Mar 26 at 12:27







          • 1





            We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

            – Abraham Qian
            Mar 26 at 12:32











          • Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

            – Arvind
            Mar 26 at 14:05

















          • Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

            – Arvind
            Mar 26 at 12:27







          • 1





            We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

            – Abraham Qian
            Mar 26 at 12:32











          • Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

            – Arvind
            Mar 26 at 14:05
















          Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

          – Arvind
          Mar 26 at 12:27






          Thank for the response, still having problem with a WCF REST service hosting on Azure, added the webHttpBinding as bindingcontract as given example above, i get an error. "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. "

          – Arvind
          Mar 26 at 12:27





          1




          1





          We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

          – Abraham Qian
          Mar 26 at 12:32





          We are supposed to add ssl binding(enable https)for the service plan in Azure app service.

          – Abraham Qian
          Mar 26 at 12:32













          Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

          – Arvind
          Mar 26 at 14:05





          Thank you very much, i am able to connect my site as REST and get data, though i get 400 Bad Request as a response, but i also get the desired JSON response form the method, i can now check further on the reason for 400 error code i get.

          – Arvind
          Mar 26 at 14:05








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337794%2fhosting-wcf-soap-and-wcf-rest-service-as-azure-app-services%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript