[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>&nbsp;</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>&nbsp;- Does it use reflection to invoke the web method <BR>&nbsp;- 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>&nbsp;</DIV>
<DIV class=RTE>For example,,</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Lets say the Web Method is..</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>public void addEntry(String s,Address a)<BR>{<BR>&nbsp; //implementation of the "addEntry" web method<BR>}&nbsp;&nbsp; </DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Here, "Address" represents a complex type in the schema </DIV>
<DIV class=RTE>as in,</DIV>
<DIV class=RTE>&lt;xsd:complexType name="address"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:all&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element name="streetNum" </DIV>
<DIV class=RTE>type="xsd:int"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element name="streetName" </DIV>
<DIV class=RTE>type="xsd:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element name="city" type="xsd:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsd:all&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsd:complexType&gt;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>In a scenario like the above, </DIV>
<DIV class=RTE>&nbsp;</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.&nbsp; </DIV>
<DIV class=RTE><BR>If not, what is the mechanism used.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE><BR>Waiting for a Quick reply...</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Mahen</DIV>
<DIV class=RTE><BR>&nbsp;</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>