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 "Mark Swanson (JIRA)" <ax...@ws.apache.org> on 2005/08/23 21:35:08 UTC
[jira] Commented: (AXIS-2192) Axis no longer works with XmlBeans
[ http://issues.apache.org/jira/browse/AXIS-2192?page=comments#action_12319781 ]
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="http://webservices.test.com/xact" xmlns="http://webservices.test.com/xact" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:element name="CardExpiry">
<xs:complexType>
<xs:sequence>
<xs:element ref="month"/>
<xs:element ref="year"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="month">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:totalDigits value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="year">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:totalDigits value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>
String ns = "http://webservices.test.com/xact";
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, q),
new XmlBeanDeserializerFactory(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class, q));
// 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: http://issues.apache.org/jira/browse/AXIS-2192
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira