locked
Problem when consuming webservice RRS feed

  • Question

  • User514096037 posted

    Hi!

    I have a web application that accesses a webservice for several months.
    This webservice is from another company. So far everything worked well, I'm using the framework 4.0, and I added a Service Reference to my website.

    However, the webservice was changed and now when I try to add it to my project, using the Add Service Reference, my web.config change as follows:

    <system.serviceModel>
        <bindings>
          <customBinding>
            <binding name="ConsultaUtenteBindingQSService1_ConsultaUtenteBindingQSPort1">
              <!--    WsdlImporter encountered unrecognized policy assertions in ServiceDescription 'http://xmlnssns.min-saude.pt/ConsultaUtente':    -->
              <!--    <wsdl:binding name='ConsultaUtenteBinding'>    -->
              <!--        <sp:SupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">..</sp:SupportingTokens>    -->
              <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
                messageVersion="Soap11" writeEncoding="utf-8">
                <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                  maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              </textMessageEncoding>
              <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
                maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
                bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
                keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
                realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
                useDefaultWebProxy="true" />
            </binding>
          </customBinding>
        </bindings>
      </system.serviceModel>

    Just for the record I try do "Add Web Reference" and It work, but I  want to be able to work with a newer version of the framework and not go backwards. 

    Any Ideias??? 

    Thanks in advance.

    Regards.

    Tuesday, February 26, 2013 12:07 PM

Answers

All replies