Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - svcutil doesn't generate source code

 
 
Old 09-05-2006   #1 (permalink)
Ian Harding


 
 

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 SpecsSystem Spec
Old 09-10-2006   #2 (permalink)
Arkady Frenkel


 
 

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 SpecsSystem Spec
Old 09-20-2006   #3 (permalink)
Ian Harding


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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 45 46