none
WCF (The caller was not authenticated by the service.) RRS feed

  • Pergunta

  • Olá,

    Quando tento acessar um Servico WCF hospedado no IIS usando o wsHttpBinding me retorna o seguinte erro:
    "The caller was not authenticated by the service."

    Não sei quais configurações devem ser realizadas no IIS, se puderem ajudar agradeço muito!

    Cliente:
    using (DerivadaClient proxy = new DerivadaClient("BasicHttpBinding_Derivada")){
      result = proxy.CalculaDerivada(new string[] { "MSFT" }, new decimal[] { 3 }, new string[] { });
      proxy.Close();
    }
    App.config
        <system.serviceModel>
            <client>
                <endpoint address="http://vm01/teste/Service.svc"
                    binding="wsHttpBinding"
                    contract="Derivada"
                    name="BasicHttpBinding_Derivada" />
            </client>
        </system.serviceModel>

    Servidor:
    Web.config
      <system.serviceModel>
        <services>
          <service name="DerivativesCalculator.DerivativesCalculatorServiceType">
            <endpoint
                address=""
                binding="wsHttpBinding"
                contract="DerivativesCalculator.IDerivativesCalculator"
            />
          </service>
        </services>
        <bindings>
          <wsHttpBinding>
            <binding name="SecureWsHttpBinding">
              <security mode="Transport">
                <transport clientCredentialType="None"/>
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
      </system.serviceModel>



    Atenciosamente,
    ------------------------------------------
    Maicon Carlos Pereira
    ------------------------------------------
    E-Mail: maiconunivali@yahoo.com.br
    MSN: maiconcp@hotmail.com
    segunda-feira, 3 de março de 2008 21:04

Respostas