axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dario Di Minno <dariodimi...@yahoo.it>
Subject WSDL2Java and mime type application/octet-stream
Date Thu, 18 Mar 2004 11:37:38 GMT
It has been notished by some users that specifying the mime type 
"application/octet-stream" in a wsdl leads to an exception
running WSDL2Java:

java.lang.NullPointerException
       at org.apache.axis.wsdl.toJava.Utils.getNewQName(Utils.java:704)
       ....

while writing "application/octetstream" in the wsdl, WSDL2Java works.

But RFC2045 and RFC2046 define the mime type as "application/octet-stream"

I think that fixing the spelling of "octet-stream" in line 702 of 
org.apache.axis.wsdl.toJava.Utils:

else if ("application/octetstream".equals(mimeName)) ...

should correct the problem and should make the WSDL2Java more wsdl 
conformant!

Thank you.
Dario


Mime
View raw message