4. Servlet Connector的入口Servlet:
com.esri.esrimap.Esrimap 參數
ServiceName ArcIMS 服務名
ClientVersion ArcIMS 版本號
Form true請求來自HTML的Form
Encode
* 請求重定向 CustomService 參數
原因:
影像虛擬服務(Image MapService) 不提供"屬性信息","幾何信息","地理編碼"等的功能,所以請求被重定向到其它的虛擬服務。
即:
When sending a request other than GET_IMAGE to an image MapService,redirection is required;
Redirection is achieved in action attribute of the PostForm:
GET_FEATURES
CustomService = Query
GET_GEOCODE
CustomService = Geocode
GET_EXTRACT
CustomService = Extract
Http://caesar1:8888/servlet/com.esri.esrimap.Esrimap?ServiceName=Beijing&CustomService=Query&ClientVersion=3.1&Form=true
5.PostForm
ArcXMLRequest(required) ArcXML request being sent to the server
JavaScriptFunction(optional) 指定 jsForm.htm 中的處理response 函數名,默認爲passXML()
RedireURL(optional)
BgColor(optional)
FormCharset(optional)
6.請求與響應的過程:
1>Request --> Servlet Connector -->Application Server
Servlet Connector對傳來的Request進行解析,只傳給Application Server :
* ServiceName
* ArcXMLRequest
其餘參數由Servlet Connector保留對響應(Response)的格式設置
2>對Servlet Connector的調用爲:
http://hostName/servlet/com.esri.esrimap.Esrimap
3>響應:Application Server將參數傳遞給 Spatial Server,Spatial Server將響應
(Response)返回給 Application Server,所有的 Response只有兩種:
* ArcXML 包含屬性信息、圖片的URL(HTML Viewer只能處理這一種)
* Feature Stream 二進制壓縮要素流
4>the Servlet Connector Creates a new HTML page based on
* Value of the input elements specified in the request
* Default values of the input elements
* The Response ArcXML