Hi,

Indeed, WSDL2Java probably doesn't recognise xsd:char (perhaps other tools do). However, this is incorrect, since there is no such thing as an xsd:char is the xsd specification (I'm assuming that you're refering to http://www.w3.org/2001/XMLSchema).

xsd:byte is probably what you're looking for:

<xs:simpleType name="byte" id="byte">
  <xs:annotation>
    <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#byte"/>
  </xs:annotation>
  <xs:restriction base="xs:short">
    <xs:minInclusive value="-128" id="byte.minInclusive"/>
    <xs:maxInclusive value="127" id="byte.maxInclusive"/>
  </xs:restriction>
</xs:simpleType>


Cheers,

Bruno.
        

femke wrote:
correct me if I'm wrong but does axis not recognise xsd:char?  I get an error
when trying to WSDL2Java a wsdl file that was generated by axis:

java.io.IOException: Type {http://DefaultNamespace}char is referenced but
not defined.

When backtracking a bitt, axis appears to have generated the wsdl file with
a DefaultNamespace for the "char" variable.   Then if I mess with the WSDL
file and either delete the line referring to the char or change it to
xsd:int, the WSDL2Java works fine (?!).  Looking at some old messages on the
forum, in 2002 char wasn't supported....is it still not?  any suggestions on
a workaround?  maybe just an xsd:anytype?

Cheers,

femke

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to