1

application/soap+xml である必要があるのに、WCF サービスが content-type を text/xml として送信する理由を知っている人はいますか?

次はサーバーの Web.config です。

<system.serviceModel>
  <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  <services>
    <service name="WCFServicioSNP.ServicioSNP" behaviorConfiguration="WCFServicioSNP.ServicioSNPBehavior">
      <endpoint address="" binding="wsHttpBinding" contract="WCFServicioSNP.IServicioSNP"/>
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    </service>
    <service behaviorConfiguration="WCFServicioSNP.ServicioNovedadSNPBehavior" name="WCFServicioSNP.ServicioNovedadSNP">
      <endpoint address="" binding="wsHttpBinding" contract="WCFServicioSNP.IServicioNovedadSNP"/>
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    </service>
    <service behaviorConfiguration="WCFServicioSNP.ServicioInfraestructuraSNPBehavior" name="WCFServicioSNP.ServicioInfraestructuraSNP">
      <endpoint address="" binding="wsHttpBinding" contract="WCFServicioSNP.IServicioInfraestructuraSNP"/>
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    </service>
  </services>
  <behaviors>
    <serviceBehaviors>
      <behavior name="WCFServicioSNP.ServicioSNPBehavior">
        <serviceMetadata httpGetEnabled="True"/>
        <serviceDebug includeExceptionDetailInFaults="False"/>
      </behavior>
      <behavior name="WCFServicioSNP.ServicioNovedadSNPBehavior">
        <serviceMetadata httpGetEnabled="true"/>
        <serviceDebug includeExceptionDetailInFaults="False"/>
      </behavior>
      <behavior name="WCFServicioSNP.ServicioInfraestructuraSNPBehavior">
        <serviceMetadata httpGetEnabled="true"/>
        <serviceDebug includeExceptionDetailInFaults="False"/>
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>
4

0 に答える 0