WCF using soap 1.2 generates wsdl with soap 1.1 reference

后端 未结 2 1729
感动是毒
感动是毒 2021-01-14 05:04

I am creating a WCF service which must have a soap 1.2 endpoint. The service is using the following custom binding:

    
        

        
相关标签:
2条回答
  • 2021-01-14 05:15

    Try making the below changes in web.config (OR) app.config file

    <Configuration>
        <webServices>
            <protocols>
                <remove name="HttpSOAP"/>
                <add name="HttpSOAP12" />
            </protocols>
        </webServices>
    </configuration>
    
    0 讨论(0)
  • 2021-01-14 05:25
    <Configuration>
     <system.web>
       <webServices>
         <protocols>
            <remove name="HttpSOAP"/>
            <add name="HttpSOAP12"/>
         </protocols>
      </webServices>
    </system.web>
    

    websServices needs to be enclosed within the system.web section. If not the soltuion throws error " The configuration section 'webServices' cannot be read because it is missing a section declaration "

    0 讨论(0)
提交回复
热议问题