Question
What is Streaming in WCF?

Answers

In WCF any receiving message is delivered only once entire message has been received. What I mean here is that first message is buffered at the receiving side and once it is fully received it gets delivered to the receiving end. Main problem with this approach is that receiver end is unresponsive while message is getting buffered. So default way of message handling in WCF is ok for small size messages but for the large size messages this approach is not good. So to overcome this problem Streaming in WCF come into action. Steaming and Binding:

1. TCP, IPC and HTTP bindings support streaming.
2. For all the Binding streaming is disabled by default.
3. Streaming of the message should be enabled in the binding to override the buffering and enable the streaming.
4. TransferMode property should be set according to the desired streaming mode in the bindings.
5. Type of TransferMode property is enum TransferMode

Configuring Streaming in Config file:

1. <system.serviceModel>
2. <services>
3. <service name="OneWayService.Service1" behaviorConfiguration="OneWayService.Service1Behavior">
4. <!-- Service Endpoints -->
5. <endpoint address="" binding="basicHttpBinding" bindingConfiguration="StreamedHttp" contract="OneWayService.IService1">
6. <identity>
7. <dns value="localhost" /> </identity>
8. </endpoint>
9. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service>
10. </services>
11. <bindings>
12. <basicHttpBinding>
13. <binding name="StreamedHttp" transferMode="Streamed" /> </basicHttpBinding>
14. </bindings>
15. <behaviors>
16. <serviceBehaviors>
17. <behavior name="OneWayService.Service1Behavior">
18. <serviceMetadatahttpGetEnabled="true" />
19. <serviceDebugincludeExceptionDetailInFaults="false" /> </behavior>
20. </serviceBehaviors>
21. </behaviors>
22. </system.serviceModel>   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q The host country of FIFA World Cup 2022 is
  • Q Typhoon ________ with winds speed of up to 90 kmph is the 12th major storm to hit Vietnam in the year 2017.
  • Q By which of the following amendment acts of the Indian constitution, the Panchayati raj system got the constutional status –
  • Q The price of a product is reduced by 30% . By what percentage should it be increased to make it 100%
  • Q Define the Nutrition
  • Q During which Plan did prices show a decline?
  • Q What is China's official language: Cantonese; Mandarin; Xiang; or Wu?
  • Q Who was recently been appointed as the chairman of National Book Trust?
  • Q What is the difference between a static and a non-static inner class?
  • Q What does V.R. signify?
  • Q What weapon is known as the gun that won the west