[Mono-list] ASP.NET internals....
Mahen Perera
mahens80@hotmail.com
Fri, 28 May 2004 16:42:39 +0000
<html><div style='background-color:'><DIV class=RTE>Hi everybody,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>I have some Questions regarding the internals of </DIV>
<DIV class=RTE>invocation of web services in ASP.NET </DIV>
<DIV class=RTE><BR> - Does it use reflection to invoke the web method <BR> - Does it use reflection to create instances of the </DIV>
<DIV class=RTE>classes which represent the parameters of the web method </DIV>
<DIV class=RTE>to be invoked.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>For example,,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Lets say the Web Method is..</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>public void addEntry(String s,Address a)<BR>{<BR> //implementation of the "addEntry" web method<BR>} </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Here, "Address" represents a complex type in the schema </DIV>
<DIV class=RTE>as in,</DIV>
<DIV class=RTE><xsd:complexType name="address"><BR> <xsd:all><BR> <xsd:element name="streetNum" </DIV>
<DIV class=RTE>type="xsd:int"/><BR> <xsd:element name="streetName" </DIV>
<DIV class=RTE>type="xsd:string"/><BR> <xsd:element name="city" type="xsd:string"/><BR> </xsd:all><BR> </xsd:complexType></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>In a scenario like the above, </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>-Does it use reflection to invoke the addEntry method </DIV>
<DIV class=RTE>-Does it use reflection to create an instance of the </DIV>
<DIV class=RTE>Address class and call the appropriate setters to </DIV>
<DIV class=RTE>populate the fields in it. </DIV>
<DIV class=RTE><BR>If not, what is the mechanism used.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE><BR>Waiting for a Quick reply...</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Mahen</DIV>
<DIV class=RTE><BR> </DIV></div><br clear=all><hr>Help STOP spam with <a href="http://g.msn.com/8HMAEN/2731??PS=47575">the new MSN 8 </a> and get 2 months FREE*</html>