If I understand correctly, you want your complex type Address with a package name of your choosing, correct? This worked for me back in my axis 1.x days:

<target name="my-wsdl2java" description="Generate compiled complex interfaces and classes from wsdl" depends="clean,prepare">
       <echo message="Creating the custom complex objects using axis tools...." />
       <delete dir="resources/axis/com" />
       <axis-wsdl2java
         output="resources/axis"
         verbose="true"
         url=""
         >
         <mapping
           namespace="http://com/hostedtelecom/callcentreweb"
           package="com.hostedtelecom.callcentreweb.endpoint" />
       </axis-wsdl2java>
       <echo message="Creating the IDE custom complex objects JAR" />
      <javac srcdir="resources/axis" destdir="${build}" debug="true">
       <include name="**/*.java" />
       <classpath refid="classpath-jboss"/>
      </javac>
       <copy todir="${build}">
         <fileset dir="resources/axis">
           <include name="**/*.class"/>
         </fileset>
       </copy>
       <jar jarfile="lib/myWsdl.jar" >
          <fileset dir="${build}" />
       </jar>
      <delete dir="${build}" />
   </target>

That'll create your packages as "com.hostedtelecom.callcentreweb.endpoint" .

HTH,
Robert
http://www.braziloutsource.com/

On 5/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

When running wsdl2java in debug mode, I see the following:


[axis-wsdl2java] org.apache.axis.wsdl.symbolTable.DefinedType
[axis-wsdl2java] QName:         {http://hartfordlife.com}ArrayOf_tns1_Address
[axis-wsdl2java] name:          org.apache.xml.axis.wsdd.providers.java.Address[]
[axis-wsdl2java] isReferenced?  true
[axis-wsdl2java] Class:         org.apache.axis.wsdl.symbolTable.DefinedType
[axis-wsdl2java] Base?:         false
[axis-wsdl2java] Undefined?:    false
[axis-wsdl2java] isSimpleType?  false
[axis-wsdl2java] Node:          [complexType: null]
[axis-wsdl2java] Dims:          []
[axis-wsdl2java] isOnlyLiteralReferenced: false
[axis-wsdl2java] RefType:
[axis-wsdl2java]   QName:         {http://xml.apache.org/axis/wsdd/providers/java}Address
[axis-wsdl2java]   name:          org.apache.xml.axis.wsdd.providers.java.Address
[axis-wsdl2java]   isReferenced?  true
[axis-wsdl2java]   Class:         org.apache.axis.wsdl.symbolTable.DefinedType
[axis-wsdl2java]   Base?:         false
[axis-wsdl2java]   Undefined?:    false
[axis-wsdl2java]   isSimpleType?  false
[axis-wsdl2java]   Node:          [complexType: null]
[axis-wsdl2java]   Dims:
[axis-wsdl2java]   isOnlyLiteralReferenced: false
[axis-wsdl2java]   RefType:       null
[axis-wsdl2java]

I am using the following beanMapping:

        <beanMapping qname="java:Address" xmlns:ns="java:my.package" languageSpecificType="java:my.package.Address"/>

How do I set the name to my.package.Address instead of org.apache.xml.axis.wsdd.providers.java.Address?

Thanks!

Joshua








*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

Reply via email to