<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am designing a client server system that
exchanges data thru XML.</FONT></DIV>
<DIV><FONT face=Arial size=2>We have to implement something as "ECHO"
Fields.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>What this means is that, in the request that the
client sends to the server,</FONT></DIV>
<DIV><FONT face=Arial size=2>there are some fields that are marked as echo
fields. Echo fields are optional fields when building a request</FONT></DIV>
<DIV><FONT face=Arial size=2>but, when included in the request, it becomes
mandatory for the server to echo ( send back without modification) them
back, in the response.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>For example let's take a simple request.
where the client send an employee number to the server, and the server returns
the name of the employee.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><request></FONT></DIV>
<DIV><FONT face=Arial size=2><emplno echo="true"> 414021
</emplno></FONT></DIV>
<DIV><FONT face=Arial size=2></request></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The following is the valid response</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><response></FONT></DIV>
<DIV><FONT face=Arial size=2><name> Abhishek </name></FONT></DIV>
<DIV><FONT face=Arial size=2><surname> Srivastava
</surname></FONT></DIV>
<DIV><FONT face=Arial size=2><emplno echo="true"> 414021
</emplno></FONT></DIV>
<DIV><FONT face=Arial size=2></response></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>If the server skips the emplno
element then the response should not be treated as a valid document. And
the parser should throw an exception as a mandatory field is
missing.</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>However, if the client had not sent the emplno
field in the request, then the emplno field would have been optional
in the response.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>How can this be done ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Abhishek.</FONT><FONT face=Arial
size=2> </FONT></DIV>
<DIV><FONT face=Arial
size=2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>
_/
Abhishek Srivastava<BR>
_/
Hewlett Packard ISO <BR>
_/_/_/ _/_/_/ -------------------
<BR> _/ / _/
_/ (Work) +91-80-2251554 x1190<BR>_/
_/ _/_/_/ (Ip)
15.10.47.37
<BR>
_/
(Url) <A
href="http://sites.netscape.net/abhishes/index.html">http://sites.netscape.net/abhishes/index.html</A>
<BR>
_/
<BR>
Work like you don't need the
money.<BR>
Dance like no one is
watching.<BR>
And love like you've never been
hurt.<BR>
--Mark
Twain
<BR>
<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR></FONT></DIV></BODY></HTML>