Last post Mar 19, 2013 03:02 AM by mou_inn
Mar 17, 2013 02:16 PM|mou_inn|LINK
whenever i consume any web service then the company who developed the service they always provide web service url or wsdl or proxy related classes. i just add reference of web service url or wsdl file then i have seen VS IDE always generate proxy related
classes to invoke web service. i often hard and found that people try to know how to generate proxy of web service dynamically but i really do not know why one require to generate proxy dynamically.
so please some one tell me the situation when one has to generate proxy for web service dynamically or progrramatically. also tell me what are the information the consumer must have to generate web service proxy dynamically. thanks
Mar 17, 2013 02:56 PM|sukumarraju|LINK
The DynamicProxy allows you to create the dynamic WCF client at runtime by specifying the WSDL URI of the service. The DynamicProxy does not depend on the precompiled proxy or configuration. The DynamicProxy uses the MetadataResolver to download the
metadata from the service and WsdlImporter to create the contract and binding at runtime. The compiled dynamic proxy can be used to invoke the operations on the service using reflection.
Mar 18, 2013 02:59 AM|mou_inn|LINK
the important one thing is missing. i just need to know when i should go for generating dynamic proxy?
Mar 18, 2013 05:47 AM|sukumarraju|LINK
when i should go for generating dynamic proxy?
Mar 19, 2013 03:02 AM|mou_inn|LINK
very sorry u not saying the actual answer that is why one should go for dynamic proxy ?
in what kind of situation one has to create proxy dynamically.