0

JAX WS 正在生成以下内容(仅显示了一个片段):

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
  <ns2:capMessageResponse xmlns:ns2="http://www.########.com" xmlns:ns3="test:one:two:1.2" xmlns:ns4="test:one:two:three:1.1">
     <ns3:alert>
        <ns3:identifier>1247275</ns3:identifier>

这是生成它的方法:

@WebMethod(operationName = "capMessage", action = "urn:getCapMessages")
@WebResult(name = "alert", targetNamespace="test:one:two:1.2")
public List<AlertType> getCapMessage(String messageIds,String uniqueId,boolean skipHtmlStrip) throws CommsMessageException {
    try {

我们需要做的还有 xmlns:ns2="http://www.########.com" xmlns:ns3="test:one:two:1.2" xmlns:ns4="test :one:two:three:1.1" 在 ns3:alert 标签上也可见。

有没有办法做到这一点?

4

0 回答 0