You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nelson Minar <ne...@monkey.org> on 2004/02/08 17:42:55 UTC

Bad types (int -> long)

I have an Axis server with a method which expects a long parameter.

I have a SOAPpy Python client that's ignoring what the WSDL asked for
and is passing the parameter as an int.
  <v1 xsi:type="xsd2:int">50000</v1>

Apache Axis fails, saying
  org.xml.sax.SAXException: Bad types (int -> long)

While the Axis server is technically correct and the Python client is
wrong, this error seems awfully unhelpful. An int can be converted to
a long afterall.

Is there any way to get Axis to be a bit more accepting?