This web service does not conform to WS-I Basic Profile v1.1. Error

ล็อกแล้ว This web service does not conform to WS-I Basic Profile v1.1. Error

  • Friday, March 23, 2012 11:21 AM
     
      Has Code

    debigging web service throws the following error. Please advice

    This web service does not conform to WS-I Basic Profile v1.1.

    Please examine each of the normative statement violations below. Follow the recommendations to remedy it, or add setting to the <webServices> config section to turn off BP 1.1 conformance warnings for the entire vroot.

    To turn off BP 1.1 conformance warnings for the entire vroot remove the 'BP1.1' value from the <conformanceWarnings> section of the configuration file of your application:

    <configuration>
      <system.web>
        <webServices>
          <conformanceWarnings>
            <remove name='BasicProfile1_1'/>
          </conformanceWarnings>
        </webServices>
      </system.web>
    </configuration>


    SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementation guidelines that recommend how a set of core Web services specifications should be used together to develop interoperable Web services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.
    Recommendation: Consider changing config settings in web.config file in your application or site root directory to enable SOAP 1.1 protocol for your Web service.


    For more details on Basic Profile Version 1.1, see the Basic Profile Specification.

All Replies

  • Friday, March 23, 2012 12:55 PM
    Moderator
     
     

    What problem are you having?


    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects

  • Friday, March 30, 2012 9:22 AM
     
     

    When I browse the web service http://localhost/myWebservice/myWebservice.asmx it was throwing the above warning and was not listing the webmethods in the service. Looks like the webservice was configured to use only SOAP 1.2 instead of allowing both SOAP1.1 and SOAP1.2. Even after updating the webconfig to enable both protocols i was getting the same warning and issue. Finally i had to remove the Location='mywebservice.wsdl' property of WebServiceBindingAttribute as per the thread in http://forums.asp.net/t/1368133.aspx/1 . Is this the correct solution?

     

    Thanks