13

我正在使用jaxws maven 插件来生成 web 服务访问类。在生成期间,将打印以下警告:

[警告] SOAP 端口“MyServicePort”使用非标准 SOAP 1.2 绑定。http://...?wsdl的第 XXX 行

通过添加一个额外的参数 ( -extension) 我让它工作但是我想知道这个错误是关于什么的?SOAP 1.2 绑定对我来说似乎是官方的 - 那么问题是什么?

wsdl 的命名空间定义如下:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="FooServerInvoker" 

targetNamespace="http://ws.server.foo.com/" 
xmlns:ns1="http://schemas.xmlsoap.org/soap/http" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
xmlns:tns="http://ws.server.jadice.levigo.com/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

这里提到了这个问题,如果你想尝试一下,你可以在其中找到一个示例 wsdl。

4

0 回答 0