axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Swanson (JIRA)" <>
Subject [jira] Commented: (AXIS-2192) Axis no longer works with XmlBeans
Date Tue, 23 Aug 2005 19:35:08 GMT
    [ ] 

Mark Swanson commented on AXIS-2192:

This code is based on the Axis xmlbeans sample. I have tried complex types/ elements, tried
to map the interface, the Document, the non-document, the internal class, tried document and
wrapped - nothing works anymore.

The simple schema and test program are:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="" xmlns=""
xmlns:xs="" elementFormDefault="qualified" attributeFormDefault="qualified">
        <xs:element name="CardExpiry">
                          <xs:element ref="month"/>
                          <xs:element ref="year"/>
        <xs:element name="month">
                        <xs:restriction base="xs:int">
                                <xs:totalDigits value="2"/>
        <xs:element name="year">
                        <xs:restriction base="xs:int">
                                <xs:totalDigits value="4"/>

 String ns = "";
        QName q = new QName(ns, "CardExpiry");

        TypeMapping tm = DefaultTypeMappingImpl.getSingletonDelegate();
        // CardExpiry
        tm.register(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class, q,
          new XmlBeanSerializerFactory(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class,
          new XmlBeanDeserializerFactory(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class,

        // month
        q = new QName(ns, "month");
        tm.register(MonthDocument.Month.class, q,
          new XmlBeanSerializerFactory(MonthDocument.Month.class, q),
          new XmlBeanDeserializerFactory(MonthDocument.Month.class, q));
        System.out.println("Registered:" + MonthDocument.Month.class.getName());

        // year
        q = new QName(ns, "year");
        tm.register(YearDocument.Year.class, q,
          new XmlBeanSerializerFactory(YearDocument.Year.class, q),
          new XmlBeanDeserializerFactory(YearDocument.Year.class, q));

> Axis no longer works with XmlBeans
> ----------------------------------
>          Key: AXIS-2192
>          URL:
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, Java 5
>     Reporter: Mark Swanson

> A few weeks ago Axis generated the WSDL correctly for XmlBeans parameters for wrapped
services. It no longer does.
> Now XmlBeans are assigned xsd:anyType in the WSDL - which is not usable and wrong.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message