dev*_*dev 7 java soap web-services soapui tcpdump
我在SOAP UI中使用模拟服务作为我的服务器端来获取我从Java Web服务客户端发出的soap请求的响应.
我的Java Web服务客户端形成了一个正确的请求,但我收到以下响应:
03-05-2016 00:03:00,562 |ERROR (pool-4919-thread-1)|REMEDY|TT_CONNECTION|ST_ERROR_Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>Missing operation for soapAction [urn:XEL:TR-AlarmasCapo/New_Create_Operation_0] and body element [null] with SOAP Version [SOAP 1.1]</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope> org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>Missing operation for soapAction [urn:XEL:TR-AlarmasCapo/New_Create_Operation_0] and body element [null] with SOAP Version [SOAP 1.1]</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)
我已将这些参数设置为false,但问题仍然存在:
我在日志中看到了正确的请求,但是当我看到tcpdump请求为空时.标签为空:
12:05:00.536717 IP portal..60954 > soapui..radan-http: Flags [P.], seq 1:308, ack 1, win 115, options [nop,nop,TS val 4220848935 ecr 3816244343], length 307
E..g..@.@..K...'...)...........E...sh......
...'.wDwPOST /mockNew_Port_0SoapBinding HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Accept: */*
SOAPAction: "urn:XEL:TR-AlarmasCapo/New_Create_Operation_0"
User-Agent: Apache CXF 2.6.8.redhat-7
Cache-Control: no-cache
Pragma: no-cache
Host: soapui:8088
Connection: keep-alive
Content-Length: 175
12:05:00.536889 IP portal..60954 > soapui..radan-http: Flags [P.], seq 308:483, ack 1, win 115, options [nop,nop,TS val 4220848935 ecr 3816244343], length 175
E.....@.@......'...)...........E...sn......
...'.wDw<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/><soap:Body/></soap:Envelope>
12:05:00.537024 IP soapui..radan-http > portal..60954: Flags [.], ack 308, win 122, options [nop,nop,TS val 3816244343 ecr 4220848935], length 0
E..4.2@.@......)...'.......E.......zFB.....
.wDw...'
12:05:00.537180 IP soapui..radan-http > portal..60954: Flags [.], ack 483, win 130, options [nop,nop,TS val 3816244344 ecr 4220848935], length 0
E..4.3@.@......)...'.......E...h....E......
.wDx...'
12:05:00.557174 IP soapui..radan-http > portal..60954: Flags [P.], seq 1:517, ack 483, win 130, options [nop,nop,TS val 3816244364 ecr 4220848935], length 516
E..8.4@.@......)...'.......E...h...........
.wD....'HTTP/1.1 500 Internal Server Error
Content-Type: text/html; charset=iso-8859-1
Transfer-Encoding: chunked
Server: Jetty(6.1.26)
177
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>Missing operation for soapAction [urn:XEL:TR-AlarmasCapo/New_Create_Operation_0] and body element [null] with SOAP Version [SOAP 1.1]</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)
过去有没有人遇到过这个问题.请让我知道如何解决它.
如果此信息不充分,请评论.
| 归档时间: |
|
| 查看次数: |
637 次 |
| 最近记录: |