私はwsimportを使用しています
ビルドの競合を防ぐために、 xs:complextype name=Address の名前を変更する必要があります。
WSDL のスニペットを次に示します。
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://fedex.com/ws/rate/v13" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://fedex.com/ws/rate/v13" name="RateServiceDefinitions">
  <types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/rate/v13">
      <xs:complexType name="Address">…</xs:complexType>
    ....
   </types>
   ....
</definitions>
外部バインディング ファイルを使用しています。
<jxb:bindings 
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns="http://fedex.com/ws/rate/v13"
    xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
    xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="2.1"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    >
    <jxb:globalBindings>
        <jxb:javaType name="java.util.Calendar" xmlType="xs:dateTime" parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime" printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
    </jxb:globalBindings>
   <jxb:bindings node="definitions/types/xs:schema/xs:complexType[@name='Address']/xs:complexType">
        <!-- change java method name from addNumbers() to add() -->
        <jxb:class name="FedExAddress"/>
    </jxb:bindings>
</jxb:bindings>
ビルドを実行すると、次のメッセージが表示されます。
[wsimport] [ERROR] XPath evaluation of "definitions/types/xs:schema/xs:complexType[@name='Address']/xs:complexType" results in empty target node
 [wsimport]   line 14 of file:/Users/davidboyd/projects/heritage/hybris/bin/custom/cpdeliveryservice/fedex_binding.xml
私は次の投稿を見てきましたhere、here、およびいくつかの参考文献と同様に、参考文献1と参考文献2
しかし、なぜこれが機能しないのか理解できません。