Hi all,

I've gotten back to looking at upgrading to Axis2 after a long hiatus.  Feel
free to tell me if I've done something stupid.

 I tried running

sh $AXIS2_HOME/bin/wsdl2java.sh -uri wsdl/our_wsdl.wsdl -o gensrc -ss -sd

using first Axis2 1.4.1 and then 1.5.1.  our_wsdl.wsdl is the file I
successfully used with Axis 1.4 the last time I worked with the services on
our project.

Both times, wsdl2java generated source files but one problem.

The generated code wouldn't compile Cadm.java:
                 if (reader.isStartElement())
                {

object.setDOC_APP_CALDT(org.apache.axiom.om.OMElement.Factory.parse(reader));
                    reader.next();
                }  // End of if for expected property start element
and the problem is that OMElement.Factory doesn't exist.

The matching part in the wsdl looks like
<xsd:complexType name="cadmType">
    <xsd:sequence>
     <xsd:element ref="cadm:DOC_APP_CALDT" minOccurs="0"/>
     <xsd:element ref="cadm:ARCH_ID" minOccurs="0"/>
   </xsd:sequence>
</xsd:complexType>

I can make the compilation problem disappear by commenting out DOC_APP_CALDT
which is defined as
   <xsd:element name="DOC_APP_CALDT" type="ddms:CombinedDateType"/>
<simpleType name="CombinedDateType">
<union memberTypes="dateTime date gYearMonth gYear"/>
   </simpleType>

So ... am I doing something obviously wrong?  does this mean that I can't
use the default binding?  Is there a workaround? Since it's only 1 file, I
wouldn't mind manually fixing the code if I knew what was supposed to go
there.

Thanks for any help.

Reply via email to