Bonjour(Hello)
Sorry my english isn't good.
Ne sachant pas trop m'exprimer en anglais je pose ma question en francais en esperant avoir une reponse.
Voila je viens de rentrer dans WCF que je trouve formidable, sur une WebCast j'ai compris que l'on pouvais utiliser SVCUTIL.EXE pour generer cote client les proxy a la place de referencer les dll d'interface.
Hors je n'arrive pas comprendre comment utiliser cet outil.
Merci de vos reponses.

[FR]SvcUtil.exe
mahalax
Is http://localhost:2639/HostWCF/ServiceBuisnessContact your baseaddress or your endpoint address You will need to point to your baseaddress, not the endpointaddress.
Thanks!
Scott.
jonessy
Ok
I've to do :
svcutil http://localhost:2639/HostWCF/ServiceBuisnessContact /out:proxy.cs
I'm have error :
Error: Unable to obtain Metadata from http://localhost:2639/HostWCF/ServiceBuisn
essContact
WS-MetadataExchange Error
Uri: http://localhost:2639/HostWCF/ServiceBuisnessContact
Metadata contains a reference that cannot be resolved: 'http://localhost:263
9/HostWCF/ServiceBuisnessContact'.
HTTP GET Error
Uri: http://localhost:2639/HostWCF/ServiceBuisnessContact
Une erreur s'est produite lors du telechargement de 'http://localhost:2639/H
ostWCF/ServiceBuisnessContact'.
La demande a echoue avec le message d'erreur :
--
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://ww
w.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://www
.w3.org/2005/08/addressing/fault</a:Action></s:Header><s:Body><s:Fault><s:Code><
s:Value>s:Sender</s:Value><s:Subcode><s:Value xmlns:a="http://schemas.xmlsoap.or
g/ws/2005/02/sc">a:BadContextToken</s:Value></s:Subcode></s:Code><s:Reason><s:Te
xt xml:lang="fr-FR">The message contains an invalid or expired security context
token.</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>
--.
If you would like more help, please type "svcutil / "
What do I do
Merci ;)
fafsoft
NUZRUB
Hi there.
I got my friend to translate this for me.
So what you want to do is run your service and then run svcutil against it.
The syntax would be something like this:
svcutil <path to metadata endpoint URI> /out:proxy.cs
This will create a proxy.cs and a config file for your client's consumption.
Thanks!
Scott