[ http://issues.apache.org/jira/browse/AXIS-2484?page=all ]
Heiko Schwarz updated AXIS-2484:
--------------------------------
Attachment: webservice.wsdl
Attached is an examoke WSDL
> Generated code refers to wrong serializer/deserializer for simpleType with
> restriction to xsd:dateTime
> ------------------------------------------------------------------------------------------------------
>
> Key: AXIS-2484
> URL: http://issues.apache.org/jira/browse/AXIS-2484
> Project: Apache Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.4
> Environment: Linux
> Reporter: Heiko Schwarz
> Priority: Minor
> Attachments: webservice.wsdl
>
> I've defined the following simpleType in a schema (document/literal style
> webservice):
> <xsd:simpleType name="EntryDate">
> <xsd:restriction base="xsd:dateTime"/>
> </xsd:simpleType>
> The generated deploy.wsdd contained:
> <typeMapping
> xmlns:ns="http://test.bearingpoint.com/example/"
> qname="ns:EntryDate"
> type="java:java.util.Calendar"
> serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> encodingStyle=""
> />
> This didn't work and I had to change it to:
> <typeMapping
> xmlns:ns="http://test.bearingpoint.com/example/"
> qname="ns:EntryDate"
> type="java:java.util.Calendar"
> serializer="org.apache.axis.encoding.ser.CalendarSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.CalendarDeserializerFactory"
> encodingStyle=""
> />
> Also the generated Stub contained:
> qName = new
> javax.xml.namespace.QName("http://test.bearingpoint.com/example/",
> "EntryDate");
> cachedSerQNames.add(qName);
> cls = java.util.Calendar.class;
> cachedSerClasses.add(cls);
> cachedSerFactories.add(simplesf);
> cachedDeserFactories.add(simpledf);
> I had to change this to:
> java.lang.Class calendarsf =
> org.apache.axis.encoding.ser.CalendarSerializerFactory.class;
> java.lang.Class calendardf =
> org.apache.axis.encoding.ser.CalendarDeserializerFactory.class;
> qName = new
> javax.xml.namespace.QName("http://test.bearingpoint.com/example/",
> "EntryDate");
> cachedSerQNames.add(qName);
> cls = java.util.Calendar.class;
> cachedSerClasses.add(cls);
> cachedSerFactories.add(calendarsf);
> cachedDeserFactories.add(calendardf);
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]