WCFTestClient La requête HTTP est autorisée avec le schéma d'authentification client "Anonyme"

J'ai créé un service WCF et déployé sur le Serveur. Lorsque je parcours ce service, il me donne une réponse positive avec ?URL wsdl. Maintenant je suis en train de tester le service par client Test WCF. Il montre la bonne métadonnées. Mais quand j'essaie d'appeler l'une de la méthode à partir du service, il me montre une exception... voici les erro détails avec trace de la pile..

La requête HTTP est autorisée avec
le schéma d'authentification client
"Anonyme". L'en-tête d'authentification
reçu du serveur a été
"Negotiate,NTLM".

Serveur trace de la pile:

à

Système.ServiceModel.Les canaux.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest
demande, HttpWebResponse réponse,
WebException responseException,
HttpChannelFactory usine)

La requête HTTP est autorisée avec le client
schéma d'authentification "Anonyme". L'
en-tête d'authentification reçues de
le serveur était "Negotiate,NTLM".

Serveur trace de la pile:

à

Système.ServiceModel.Les canaux.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest
demande, HttpWebResponse réponse,
WebException responseException,
HttpChannelFactory usine)

Client Liaisons:

<bindings>
    <wsHttpBinding>
        <binding name="WSHttpBinding_IServiceMagicService" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
            allowCookies="false">
            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
            <reliableSession ordered="true" inactivityTimeout="00:10:00"
                enabled="false" />
            <security mode="None">
                <transport clientCredentialType="Windows" proxyCredentialType="None"
                    realm="" />
                <message clientCredentialType="Windows" negotiateServiceCredential="true"
                    establishSecurityContext="true" />
            </security>
        </binding>
    </wsHttpBinding>
</bindings>

Liaisons Du Serveur:

<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_SEOService" closeTimeout="00:10:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="true" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="999524288" maxReceivedMessageSize="655360000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="900000" maxArrayLength="900000" maxBytesPerRead="900000" maxNameTableCharCount="900000" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
</security>
</binding>
<binding name="WSHttpServiceMagicBinding" closeTimeout="00:10:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="true" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="999524288" maxReceivedMessageSize="655360000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="900000" maxArrayLength="900000" maxBytesPerRead="900000" maxNameTableCharCount="900000"/>
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/>
</security>
</binding>
</wsHttpBinding>
</bindings>

Client Client Article:

<client>
<endpoint address="http://hydwebd02.solutions.com/GeoService.Saveology.com/ServiceMagicService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IServiceMagicService"
contract="IServiceMagicService" name="WSHttpBinding_IServiceMagicService" />
</client>

Du serveur de la Section des Services:

<services>
<service behaviorConfiguration="GeoService.Saveology.com.CityStateServiceProviderBehavior"
name="GeoService.Saveology.com.CityStateServiceProvider">
<endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_SEOService"
contract="SEO.Common.ServiceContract.ICityStateService" />
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="GeoService.Saveology.com.ServiceMagicServiceProviderBehavior"
name="GeoService.Saveology.com.ServiceMagicServiceProvider">
<endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpServiceMagicBinding" 
contract="SEO.Common.ServiceContract.IServiceMagicService">
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
</service>
</services>
  • Ce qui se passe quand vous appelez ces méthodes avec un client réel?
  • OK,merci, mais vous aurez besoin afin d'afficher ÉGALEMENT le serveur du <services> section, et le client <client> section, nous allons donc voir comment ces points sont mis en place et comment vous appelez eux......
  • Avec de vrais clients, il fonctionne sans aucun problème.
  • J'ai posté les deux client <client> sectiona dn du serveur <services> section.
  • C'est symptomatique de la .Net monde que vous êtes tellement nombreux (valide) des réponses différentes à la même question, et pas un seul d'expliquer quels sont les paramètres qui vous sont en train de changer et pourquoi. Personne ne comprends ce qu'il/elle est en train de faire?
  • Peut se produire à cause du mot de passe Incorrect.

InformationsquelleAutor user82613 | 2009-06-25