- 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
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
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
- 0
- 0
- New Answer
- Contributors: *,
More Software Questions..
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Which oracle package is used to manage the oracle lock management services?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is marker interface?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What types of partitioning are there for BW?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,