Not an Axis-specific question, more about WSDL and Java...
I have a number of methods with parameters or return types like java.lang.Integer or
java.lang.Long.
Using Java2WSDL/WSDL2Java these get converted into int and long, which is not what I
need - null is a valid value. But I can't put nillable="true" in the <wsdl:part ... />
sections of my <wsdl:message .../> elements.
How can I work around this? In some cases I have declared dummy types in my WSDL to
work around this, like so:
<simpleType name="searchID">
<xsd:restriction base="xsd:long" nillable="true"/>
</simpleType>
But (a) this is rather ugly and (b) I have now hit a further problem where the return
type is java.lang.Long.
My Web Service class could wrap these methods and accept/return Strings instead, but
of course that loses a lot of type information.
Any ideas appreciated - I would have thought this was an FAQ but a (quick) search
didn't reveal anything.
Thanks
Keith