以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XML源码及示例(仅原创和转载) 』  (http://bbs.xml.org.cn/list.asp?boardid=32)
----  帮帮忙先,我这部分内容咋就看不懂呢?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=6412)


--  作者:a00
--  发布时间:4/3/2004 3:19:00 PM

--  帮帮忙先,我这部分内容咋就看不懂呢?
前面部分讲述了soap over https request的一些内容,然后就是这些了,我就是郁闷,看不懂呢?
--  作者:a00
--  发布时间:4/3/2004 3:21:00 PM

--  
附件没贴上,copy

A LCS-Client requests a Location Query Service by issuing an HTTPS POST request towards the LES.
The request line syntax is shown below.
Request-line: POST SP host SP HTTP/1.1 CRLF
The request must include the entity-header Content-length field as part of the request. The message body
of the request will consist of three HTTP post parameters:
• Context – This will contain the authentication details of the client (see chapter 2.4)
• Method – This will identify the method that is to be invoked (consists of the name of the message
being requested)
• Body – This will contain the XML payload for the specified method (see chapter 3)
The use of these parameters will allow an easier migration to SOAP, only minimal changes are required.
This is because these parameters mirror the SOAP header and body sections but do not re-invent SOAP.
Header and body have to correspond with XML and have to be urlencoded. The content-type of the
request has to be "application/x-www-form-urlencoded":
&Context=URLEncoded(HdrElement)&Method=Method&Body=URLEncoded(BodyElement)
"Application/x-www-form-urlencoded" is the default content type. Forms submitted with this content type
must be encoded as follows:
• Control names and values are escaped. Space characters are replaced by `+', and then reserved
characters are escaped as described in "Uniform Resource Locators" (T. Berners-Lee, L. Masinter,
and M. McCahill, December 1994, [RFC1738]), section 2.2: Non-alphanumeric characters are
replaced by `%HH', a percent sign and two hexadecimal digits representing the ASCII code of the
character. Line breaks are represented as "CR LF" pairs (i.e., `%0D%0A').
• The control names/values are listed in the order they appear in the document. The name is separated
from the value by `=' and name/value pairs are separated from each other by `&'.
More information about "application/x-www-form-urlencoding" can be found at http://w3.org/TR/REChtml40-
971218, chapter 17.13.4.
The answer will be included in the message body (see chapters 2.2.5 and 2.2.6) and the Content-length
entity will be set to the length of the answer. The responses have no header part.
Example HdrElement :


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
54.688ms