aspose file tools*
The moose likes Web Services and the fly likes WSDL2Java Protocol Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL2Java Protocol Exception" Watch "WSDL2Java Protocol Exception" New topic
Author

WSDL2Java Protocol Exception

Sachin Raju
Ranch Hand

Joined: Oct 29, 2009
Posts: 41
The exception is throwing when WSDL2Java file is used to create the client java files. The same is working before in a different system. The exception is :

C:\tomcat\webapps\Trail\WEB-INF\classes>java org.apache.axis.wsdl.WSDL2Java http://localhost/ReportServer/ReportExe
cution2005.asmx?wsdl
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment
support is disabled.
java.net.ProtocolException: Server redirected too many times (5)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

C:\tomcat\webapps\Trail\WEB-INF\classes>java org.apache.axis.wsdl.WSDL2Java http://localhost/ReportServer/ReportSer
ver2005.asmx?wsdl
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment
support is disabled.
java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost/ReportServer/ReportServer200
5.asmx?wsdl
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL2Java Protocol Exception