[Mono-list] Using svcutil to generate WCF proxies

Costantino Pipero cos at beeond.net
Mon Feb 15 06:59:01 EST 2010


I have Mono 2.6 on OpenSuse 11.2 and I am trying out WCF.

Everything works as expected, I created a service hosted in a console app and a client on another app, like the example on the Mono Olive Notebook.

It works, but it works because I reference the server class in the client.

Instead I want to generate a proxy using svcutil like it should be done if you want to consume from a remote web service that you don't have the source for.

I tried several things like:

svcutil http://lcalhost:8080/MyService.svc?wsdl -o myfile.cs
svcutil http://lcalhost:8080/MyService.svc|wsdl -o myfile.cs
svcutil MyService.exe -o myfile.cs

I some case the prompt sits there and does nothing, in others it throws numerous exceptions. Before I show the laundry list of errors I wanted to check if I am taking the right approach...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100215/e3ba02bf/attachment.html 

More information about the Mono-list mailing list