The message with Action '' cannot be processed at the receiver

tfkrieker Messages postés 2 Date d'inscription mercredi 12 juillet 2006 Statut Membre Dernière intervention 16 janvier 2009 - 16 janv. 2009 à 09:54
tfkrieker Messages postés 2 Date d'inscription mercredi 12 juillet 2006 Statut Membre Dernière intervention 16 janvier 2009 - 16 janv. 2009 à 09:57
Bonjour tout le monde


J'ai créé un service WCF que je souhaite exposer dans IIS.

Pour ça, j'ai créé un fichier Service.svc qui contient juste le code suivant:

<%@ ServiceHost Language= "C#" Debug="true" Service="BlotterLight.Service.BlotterService" %>

BlotterLight.Service.BlotterService correspond à mon service WCF.

Je créé mon répertoire virtuel & co et quand j'appelle la page http://localhost/blotterlightwebservice/service.svc tout fonctionne nickel.

J'obtiens bien le message classique:

You have created a service.
To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:
svcutil.exe http://mwc45018.cib.net/BlotterLight...rvice.svc?wsdl

Ensuite, je publie tout ça sur mon serveur de recette et là j'obtiens:

<s:Envelope xmlns:s=" http://schemas.xmlsoap.org/soap/envelope/ ">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a ="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>

<faultstring xml:>en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter
mismatch at the EndpointDispatcher. This may be because of either a contract mismatch
(mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and
the receiver. Check that sender and receiver have the same contract and the same binding
(including security requirements, e.g. Message, Transport, None).</faultstring>

J'ai commencé à écumer le web mais rien de concret pour le moment.


Des idées?

1 réponse

tfkrieker Messages postés 2 Date d'inscription mercredi 12 juillet 2006 Statut Membre Dernière intervention 16 janvier 2009
16 janv. 2009 à 09:57
La config WCF associée:

<system.serviceModel>
       
            <serviceBehaviors>
               
                    <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
                    <serviceMetadata httpGetEnabled="true"  />
                    <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
                    <serviceDebug includeExceptionDetailInFaults="true" />
               
            </serviceBehaviors>
       
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
     
       
         
            <security mode="None"></security>
         
       
     
        <services>
            <service behaviorConfiguration="BlotterLightWebService.ServiceBehavior"
                name="BlotterLight.Service.BlotterService">
                <!-- On utilise basicHttpBinding pour pouvoir appelé le web service depuis du 1.1 -->
                <endpoint address="http://ws-rec.ixis-cib.net/blotterlightwebservice/service.svc" binding="basicHttpBinding" bindingConfiguration="config1"
                          contract="BlotterLight.ServiceInterface.IBlotterService">
                   
                        <dns value="localhost" />
                   
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
                <host>
                 
                   
                     
                </host>
            </service>
        </services>
    </system.serviceModel>
0
Rejoignez-nous