hi ,
i want to use BasichttpBinding instead of WsHttpBinding as i need to enable transferMode="Streamed". so i changed WsHttpBinding and placed BasichttpBinding instead and enbaled mtom too. now i am facing one new problem. when i am creating the proxy then client
config file contains transferMode="Buffered" instead of transferMode="Streamed" . even when i maually change Buffered to Streamed and try to invoke the service i am gettign error
System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP response to http://localhost:1508/Host/FileTransferService.svc. This
could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
can u tel me where i am going wrong.
my service config binding looks like this
<basicHttpBinding>
<binding name="BasicHttpBinding_IFileTransferService"
closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Mtom" textEncoding="utf-8"
transferMode="Streamed"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32"
maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
my service config file looks like this;
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IFileTransferService"
messageEncoding="Mtom" transferMode="Streamed" >
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="FileTransferService.FileTransferService" behaviorConfiguration="FileTransferService.FileTransferServiceBehavior">
<!-- Service Endpoints -->
<endpoint address="" binding="basicHttpBinding" contract="FileTransferService.IFileTransferService" bindingConfiguration="BasicHttpBinding_IFileTransferService" bindingName="BasicHttpBinding_IFileTransferService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="FileTransferService.FileTransferServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
now when i invoke service by setting transfermode="Buffered" at client ,but at server its set to "Streamed", its working fine.
but i want to invoke service enabling streaming.
plz help me out...... it is eating up my time
regards,
John