Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

svcutil doesn't generate source code

 
 
Thread Tools Display Modes
Old 09-05-2006   #1 (permalink)
Ian Harding
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
Old 09-10-2006   #2 (permalink)
Arkady Frenkel
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



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








Vistax64.com 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 2005-2008

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 47 48 49 50