Bonjour,
je travaille sur un projet consommant des webservices, je viens de passer en framework 4.0 et j'accede maitenant à mon webservice en l'ayant réfrencé dans 'Service References' de mon projet, le problème est que lorsque j'implémente j'ai une exception :
Mon code :Impossible de trouver un élément de point de terminaison par défaut qui fait référence au contrat 'Webservices.WSUtilisateur.WSUtilisateurSoap' dans la section de configuration du client ServiceModel. Ceci peut être dû au fait que le fichier de configuration de votre application est introuvable ou que l'élément de point de terminaison correspondant à ce contrat est introuvable dans l'élément client.
mon app.config :
Code : Sélectionner tout - Visualiser dans une fenêtre à part _service = new WSUtilisateurSoapClient();
Est ce que quelqu'un aurait une idée ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 <bindings> <basicHttpBinding> <binding name="WSUtilisateurSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </basicHttpBinding> <customBinding> <binding name="WSUtilisateurSoap12"> <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" 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> <client> <endpoint address="http://webservices.entreprise.org/WSUtilisateur.asmx" binding="basicHttpBinding" bindingConfiguration="WSUtilisateurSoap" contract="Webservices.WSUtilisateur.WSUtilisateurSoap" name="WSUtilisateurSoap" /> <endpoint address="http://webservices.entreprise.org/WSUtilisateur.asmx" binding="customBinding" bindingConfiguration="WSUtilisateurSoap12" contract="Webservices.WSUtilisateur.WSUtilisateurSoap" name="WSUtilisateurSoap12" /> </client> </system.serviceModel>
Par avance. Merci
Partager