axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Peter Hecking" <>
Subject typemapping for generated simpleType-classes
Date Tue, 10 Dec 2002 15:14:05 GMT

I'm using WSDL2Java to generate classes for a simple (for now) wsdl file which
declares some new xs:simpleTypes like e.g.

<xs:simpleType name="URL">
    <xs:restriction base="xs:anyURI"/>

For these types WSDL2Java generates an URL class and an URLHolder class because
the URL type is used as an OUT parameter. After I figured out that I have to
declare this OUT parameter in my *.wsdd file I'm now facing the problem that this
parameter is not getting serialized although the generated URL class does implement
the interface and has 
public static org.apache.axis.encoding.Serializer getSerializer(...) and
public static org.apache.axis.encoding.Serializer getDeSerializer(...) methods.
So then I tried to add a <typeMapping/> entry to my service definition. But neither
of these two entries worked:

    <!-- ... -->
    <typeMapping qname="tns:URL"

WSDDDeployableItem - Unable to deploy typemapping: {}URL
java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected ''

    <!-- ... -->
    <typeMapping qname="tns:URL"

WSDDDeployableItem - Unable to deploy typemapping: {}URL
java.lang.ClassNotFoundException: java:com/verdisoft/URL

If anyone has figured out how to do this I'd be glad for any help
because at the moment I don't know what else I can try.


Jan Peter Hecking    VerdiSoft Software Entwicklungs GmbH
phone +49 40 280054 31       Süderstraße 77, 20097 Hamburg, Germany
fax   +49 40 280054 50

View raw message