![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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 |
My System Specs![]() |
| | #2 (permalink) |
| | 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 |
My System Specs![]() |
| | #3 (permalink) |
| | 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 > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Remark source code | .NET General | |||
| Paypal source code | .NET General | |||
| Re: IE7 - Printing source code | Vista print fax & scan | |||
| Vista Source code | Vista General | |||