0
<?xml version="1.0" encoding="UTF-8"?>
<jaxws:bindings
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://java.sun.com/xml/ns/jaxws"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">

<jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>

<jaxws:bindings node="wsdl:definitions/wsdl:types/s:schema[@targetNamespace='http://www.multispeak.org/Version_3.0']">
    <jaxb:bindings node="//s:complexType[@name='ArrayOfString2']">      
        <jaxb:class name="ArrayOfString2Test" />
    </jaxb:bindings>
</jaxws:bindings>

</jaxws:bindings>

<?xml version="1.0" encoding="utf-8" ?> 
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
xmlns:tns="http://www.multispeak.org/Version_3.0" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
targetNamespace="http://www.multispeak.org/Version_3.0" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" 
targetNamespace="http://www.multispeak.org/Version_3.0">
<s:complexType name="ArrayOfString2">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="crewID" type="s:string" /> 
</s:sequence>
</s:complexType>

上面的绑定没有显示任何错误,但它没有将 ArrayOfString2 文件名重命名为 ArrayOfString2Test 文件名。我已经尝试查看官方页面,但无法弄清楚我在这里做错了什么?

4

0 回答 0