我正在尝试通过使用 Apache Jmeter2.8 粘贴 HTTP 请求的 Post Body 部分以及 HTTP 标头管理器中的两个标头来发送一个 xml 文件内容。响应应该是另一个 xml 文件,但响应数据显示 xml 解析错误。我在采样器结果部分得到关注
Thread Name: SOS_Secured_SOS_Local 1-1
Sample Start: 2013-01-11 17:22:25 GMT+05:30
Load time: 746
Latency: 746
Size in bytes: 21586
Headers size in bytes: 256
Body size in bytes: 21330
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK
Response headers:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type
Content-Type: text/xml
Content-Length: 21330
Date: Fri, 11 Jan 2013 11:52:26 GMT
HTTPSampleResult fields:
ContentType: text/xml
DataEncoding: null
但是响应数据部分显示以下内容 -
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsAll.xsd" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ows:Exception exceptionCode="MissingParameterValue">
<ows:ExceptionText>Premature end of file.</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
有谁知道这个问题的解决方案是什么?