OpenSRS API Integration for XML
OpenSRS API Integration for XML
OpenSRS API Integration for XML
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Example 2<br />
The following two data blocks are considered semantically the same. Notice<br />
that the order of fields is not the same, but the key values allow the data<br />
blocks to be decoded into the same memory structure (associative array).<br />
MSG A<br />
<br />
MSG B<br />
<br />
Tom<br />
Jones<br />
<br />
<br />
<br />
<br />
Jones<br />
Tom<br />
<br />
<br />
Writing Your Own Client<br />
This section contains an explanation of the <strong>OpenSRS</strong> client/server data<br />
exchange. This in<strong>for</strong>mation is useful if you want to write your own client.<br />
<strong>XML</strong> client protocol fundamentals<br />
In our <strong>XML</strong> Client Protocol (XCP), the sender of a message (request or reply)<br />
must always precede the message with the header 'Content-Length: X',<br />
where 'X' is the number of bytes in the actual message (without the header).<br />
This header must be followed by a carriage return and line feed combination.<br />
Counted bytes only occur on the first non-blank line.