Yeah - this is unfortunate. Deep down in the stack, this is due to
a bug in the java.net package where a NPE is generated when
no content type is associated with your file.
At least in 1.3 -  I never checked if they solved this - well known -
problem in 1.4 or 1.5.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 4:41 PM
To: [EMAIL PROTECTED]
Subject: RE: no content-type error


Jacques,

Thank you for the reply.  It looks like that's the only solution, although I was hoping clients would not need to change their JRE config to use the software.

Thanks again,
Jeff De Pons

WDI
200 Fairway Drive, Unit 184, Vernon Hills, IL 60061
P: 847.970.6827 F: 847.970.6869
www.brunswickwdi.com



"Jacques-Olivier Goussard" <[EMAIL PROTECTED]>

06/10/2004 03:22 PM

Please respond to
[EMAIL PROTECTED]

To
<[EMAIL PROTECTED]>
cc
Subject RE: no content-type error





If your talking about changing content types for a JRE installation
(that is, if your wsdl is not served by a web server), then you can edit
$JAVA_HOME/jre/lib/content-types.properties and modify its
application/xml mapping:
 
application/xml: \
       description=XML document;\
       file_extensions=.xml,.wsdl

 
 
-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Thursday, June 10, 2004 3:35 PM
To:
[EMAIL PROTECTED]
Subject:
no content-type error


Hello,


When I use the WSIFUtils.readWSDL(null, wsdlURL); method with a file path that ends in .wsdl, I get a no content-type error.  If I change the extension to .xml, it works fine.  Is there a way to map the .wsdl content type into WSIFUtils?


ex.


WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at '/home/jdepons/webserviceTest/tutorials/webservice/example2/stockquote.wsdl'.: no content-type


Thanks,

Jeff De Pons

WDI
200 Fairway Drive, Unit 184, Vernon Hills, IL 60061
P: 847.970.6827 F: 847.970.6869
www.brunswickwdi.com


Reply via email to