有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java允许不带引号的soap操作JAXWS

如何放松jax-ws-web服务的请求验证规则?我需要能够接收带有未引用soap操作的请求,并对其进行处理。目前发生的所有情况是,客户端收到一个400错误,我收到一个警告(com.sun.xml.internal.ws.transport.http.HttpAdapter FixQuotesRoundSoapAction接收到的ws-I BP不符合无引号的SoapAction http头)

我对收到的请求没有任何控制权,也不能强迫他们遵守

这是HTTP跟踪。如果相关的话,我可以发布wsdl

POST /delivery HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.225)
Content-Type: text/xml; charset=utf-8
SOAPAction: http://schemas.cjse.gov.uk/endpoint/wsdl/submit
Host: localhost:8080
Content-Length: 11918
Expect: 100-continue
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><NS2:SubmitRequestMes xmlns:NS2="http://schemas.cjse.gov.uk/endpoint/types/"><NS2:RequestID>leeflaxington_Z00CJSE_09251446338592</NS2:RequestID><NS2:SourceID>Z00CJSE</NS2:SourceID><NS2:DestinationID>00101PoliceCaseSystem</NS2:DestinationID><NS2:ExecMode>ASYNCH</NS2:ExecMode><NS2:Timestamp>2014-09-25T14:48:00.9375+01:00</NS2:Timestamp><NS2:Message>message data</NS2:Message></NS2:SubmitRequestMes></soap:Body></soap:Envelope>
HTTP/1.1 100 Continue
Content-Length: 0

HTTP/1.1 500 Internal Server Error
Date: Thu, 25 Sep 2014 14:03:37 GMT
Transfer-encoding: chunked
Content-type: text/xml; charset=utf-8

1ce
<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope" xmlns=""><faultcode>S:Server</faultcode><faultstring>javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[100,496]
Message: XML document structures must start and end within the same entity.]</faultstring></S:Fault></S:Body></S:Envelope>
0

HTTP/1.1 400 Bad Request
Content-Length: 40
Content-Type: text/html

<h1>400 Bad Request</h1>Bad request line 

共 (1) 个答案

  1. # 1 楼答案

    事实证明,命令行错误是一种误导。问题是帖子正文的内容长度不正确。这导致xml信封无效,因此显示了soap错误