1 |
3032
|
perry
|
|
2 |
|
|
<h2>Server requirements</h2>
|
3 |
|
|
|
4 |
|
|
<p>
|
5 |
|
|
While the design philosphy of mapbuilder is to minimize server requirements,
|
6 |
|
|
there are some cases where you have to modify your server configuration or
|
7 |
|
|
provide server CGI/script processing.
|
8 |
|
|
<ul>
|
9 |
|
|
<li><span class="title">Proxy script:</span>
|
10 |
|
|
By default, you can only load XML documents served from a server in
|
11 |
|
|
the same domain as your web page.
|
12 |
|
|
If you want to be able to load XML documents from anywhere on the Internet,
|
13 |
|
|
you will have to install a proxy loader script on your server to make it
|
14 |
|
|
look like these documents come from your domain.
|
15 |
|
|
Implementations of this script for the PHP and J2EE server environments
|
16 |
|
|
are available in the mapbuilder distribution in /mapbuilder/server subdirectory.
|
17 |
|
|
The URL to this script must be set as the <proxyUrl> property in the
|
18 |
|
|
configuration file.
|
19 |
|
|
</li>
|
20 |
|
|
<li><span class="title">Serialize script:</span>
|
21 |
|
|
If the application wants to save data to back to a server, there must be
|
22 |
|
|
something on the server preapred to receive that data.
|
23 |
|
|
An XML serializer script provides this functionality that takes the
|
24 |
|
|
body of an HTTP POST request and writes it to disk.
|
25 |
|
|
Implementations of this script for the PHP (to be completed) and
|
26 |
|
|
J2EE server environments are available in the mapbuilder distribution in
|
27 |
|
|
/mapbuilder/server subdirectory.
|
28 |
|
|
In a tomcat environment, the directory in which the XML is written is
|
29 |
|
|
configured in the deployment descriptor (web.xml).
|
30 |
|
|
The URL to this script must be set as the <serializeUrl> property in the
|
31 |
|
|
configuration file.
|
32 |
|
|
</li>
|
33 |
|
|
<li><span class="title">XML mime types:</span>
|
34 |
|
|
The XML documents you retrieve must have a mime type of "text/xml".
|
35 |
|
|
File types that typically aren't served with that mime type include
|
36 |
|
|
context documents (.cml), collections (.ccml)
|
37 |
|
|
and often XSL files as well (.xsl).
|
38 |
|
|
Check that the mime type mapping file for your server contains a line like:
|
39 |
|
|
<pre>text/xml xml xsl cml ccml</pre>
|
40 |
|
|
If you are using Apache, this file will be specified in the httpd.conf.
|
41 |
|
|
</li>
|
42 |
|
|
</ul>
|
43 |
|
|
</p>
|