I have a wcf service. I tried creating the proxy code and configuration file for the client program using svcutil:
svcutil http:
I received a valid proxy file but did not receive the configuration file. What for? (VS2010 SP1, .NET 4.0, IIS 7.0)
My service contract:
[ServiceContract] public interface IFiles { [OperationContract] Guid UploadFile(Stream stream); }
My web configuration:
<?xml version="1.0"?> <configuration> <system.serviceModel> <bindings> <webHttpBinding> <binding name="WebHttpBinding" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="1073741824" transferMode="Streamed" /> </webHttpBinding> </bindings> <services> <service behaviorConfiguration="MyServiceBehavior" name="WcfService2.Files"> <endpoint behaviorConfiguration="WebHttpBehavior" binding="webHttpBinding" bindingConfiguration="WebHttpBinding" name="Files" contract="WcfService2.IFiles" /> </service> </services> <behaviors> <endpointBehaviors> <behavior name="WebHttpBehavior"> <webHttp defaultBodyStyle="Wrapped" defaultOutgoingResponseFormat="Json" automaticFormatSelectionEnabled="false" /> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name="MyServiceBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> <system.web> <httpRuntime maxRequestLength="100000" /> </system.web> </configuration>
source share