You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Iltchenko, Andrei" <An...@nl.compuware.com> on 2003/10/16 16:29:27 UTC

Documenting the fix in Bug 23731.

Davanum,

Couldn't we also cut and paste the following description on how to make sure

that holders for arrays of primitives do not end up in the 'java.lang'
package 
to Section "WSDL2Java Reference" of "Axis Reference Guide"?

-N, --NStoPkg <argument>=<value>
.....
..... Skipping existing contents
.....
Note: In the case of the "wrapped" style of document/literal web service 
operations, unless a special action is taken, holders for arrays of
primitive 
java types introduced exclusively by way of the 'maxOccurs' and 'type' 
attributes on a local element declaration are generated in the 
packages 'holders' and 'java.lang.holders'. If the user doesn't want them 
generated there, they should supply a mapping for the XSD or SOAPENC
namespace 
used in the type definition of such an element. This may look like:

java org.apache.axis.wsdl.WSDL2Java -
Nhttp://schemas.xmlsoap.org/soap/encoding/=package_for_holders -
Nhttp://www.w3.org/1999/XMLSchema=xsd_package_for_holders d:\23731.wsdl

or, if the user wants everything generated in a single package 'mypackage':
java org.apache.axis.wsdl.WSDL2Java -pmypackage d:\23731.wsdl.


Regards,
Andrei.



-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.