![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | svcutil doesn't generate source code I have one of the simple sample services deployed on my system, if I run "svcutil http://localhost/servicemodelsamples/service.svc" against it then two files are generated - CalculatorService.cs and output.config. I have written a simple service and deployed to another folder, but when I run svcutil against this then although no errors are displayed only the output.config file is generated (FWIW, the contents of output.config look OK). I don't understand why no .cs is being generated. Not sure what other information is relevant, but here is an extract from the web.config file from my services virtual folder: <system.serviceModel> <services> <service name="EngineIndigoSupport" behaviorConfiguration="EngineIndigoSupportBehaviour"> <endpoint address="" binding="wsHttpBinding" contract="IEngineSupport2" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="EngineIndigoSupportBehaviour"> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> Please can anyone explain what I need to do to generate a client cs file, or if there is a way I can write a client without one. Thanks, Ian |
| | #2 (permalink) |
| Guest | Re: svcutil doesn't generate source code So set directory ( instead of servicemodelsamples ) you put your service in app.config of the service and try svcutil with correct path Arkady "Ian Harding" <iharding160@hotmail.com> wrote in message news:4m5h7hF4lm34U1@individual.net... >I have one of the simple sample services deployed on my system, if I run >"svcutil http://localhost/servicemodelsamples/service.svc" against it then >two files are generated - CalculatorService.cs and output.config. > > I have written a simple service and deployed to another folder, but when I > run svcutil against this then although no errors are displayed only the > output.config file is generated (FWIW, the contents of output.config look > OK). I don't understand why no .cs is being generated. Not sure what > other information is relevant, but here is an extract from the web.config > file from my services virtual folder: > > <system.serviceModel> > <services> > <service name="EngineIndigoSupport" > behaviorConfiguration="EngineIndigoSupportBehaviour"> > <endpoint address="" > binding="wsHttpBinding" > contract="IEngineSupport2" /> > <endpoint address="mex" > binding="mexHttpBinding" > contract="IMetadataExchange" /> > </service> > </services> > > <behaviors> > <serviceBehaviors> > <behavior name="EngineIndigoSupportBehaviour"> > <serviceMetadata httpGetEnabled="True"/> > <serviceDebug includeExceptionDetailInFaults="False" /> > </behavior> > </serviceBehaviors> > </behaviors> > </system.serviceModel> > > Please can anyone explain what I need to do to generate a client cs file, > or if there is a way I can write a client without one. > > Thanks, > Ian |
| | #3 (permalink) |
| Guest | Re: svcutil doesn't generate source code Thank you, sorry for not responding sooner but I was put on to other work for a while :-( I have made my service generate the client file now. Not sure what changed to make it work though, I just picked up the same configuration as before! Arkady Frenkel wrote: > So set directory ( instead of servicemodelsamples ) you put your service in > app.config of the service and try svcutil with correct path > Arkady > > "Ian Harding" <iharding160@hotmail.com> wrote in message > news:4m5h7hF4lm34U1@individual.net... > >>I have one of the simple sample services deployed on my system, if I run >>"svcutil http://localhost/servicemodelsamples/service.svc" against it then >>two files are generated - CalculatorService.cs and output.config. >> >>I have written a simple service and deployed to another folder, but when I >>run svcutil against this then although no errors are displayed only the >>output.config file is generated (FWIW, the contents of output.config look >>OK). I don't understand why no .cs is being generated. Not sure what >>other information is relevant, but here is an extract from the web.config >>file from my services virtual folder: >> >><system.serviceModel> >> <services> >> <service name="EngineIndigoSupport" >> behaviorConfiguration="EngineIndigoSupportBehaviour"> >> <endpoint address="" >>binding="wsHttpBinding" >>contract="IEngineSupport2" /> >> <endpoint address="mex" >> binding="mexHttpBinding" >> contract="IMetadataExchange" /> >> </service> >> </services> >> >> <behaviors> >><serviceBehaviors> >> <behavior name="EngineIndigoSupportBehaviour"> >><serviceMetadata httpGetEnabled="True"/> >><serviceDebug includeExceptionDetailInFaults="False" /> >> </behavior> >></serviceBehaviors> >> </behaviors> >></system.serviceModel> >> >>Please can anyone explain what I need to do to generate a client cs file, >>or if there is a way I can write a client without one. >> >>Thanks, >>Ian > > > |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remark source code | engteng | .NET General | 1 | 1 Week Ago 05:07 AM |
| Paypal source code | Chetana | .NET General | 1 | 03-15-2008 07:39 PM |
| Re: IE7 - Printing source code | PA Bear | Vista print fax & scan | 0 | 08-15-2007 04:20 PM |
| Vista Source code | Mario Rosario | Vista General | 6 | 06-22-2006 09:02 PM |