WSDL2JAVA -w(--wrapArrays)

  1. When to use undocumented wsdl2java --wrapArrays?
  2. RE: When to use undocumented wsdl2java --wrapArrays?☆comprehensiveな回答だそうです。
  3. RE: When to use undocumented wsdl2java --wrapArrays?
  4. RE: When to use undocumented wsdl2java --wrapArrays?
  5. RE: When to use undocumented wsdl2java --wrapArrays?

ん?undocumented???

ここを参考に↓
Your Vision Options

-w, --wrapArrays
Prefer generating JavaBean classes like "ArrayOfString" for certain schema array patterns (default is to use String [])


When processing a schema like this:

<element name="array">
 <complexType>
  <sequence>
   <element name="item" type="xs:string"/>
  </sequence>
 </complexType>
</element>

The default behavior (as of Axis 1.2 final) is to map this XML construct to a Java String array (String[]). If you would rather a specific JavaBean class (i.e. ArrayOfString) be generated for these types of schemas, you may specify the -w or --wrapArrays option.