You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
When trying to generate the code from a web based password protected WADL instead of a file, you need the ability to either include the username/password in the URL or you need to have a -username and -password parameter to add the data for authentication.
Currently if you try the 1st, You get this:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://USERNAME:PASSWORD@HOSTNAME/PATHTOWADL/wadl.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
at java.net.URL.openStream(URL.java:1010)
at org.jvnet.ws.wadl2java.Wadl2Java.processDescription(Wadl2Java.java:217)
at org.jvnet.ws.wadl2java.Wadl2Java.process(Wadl2Java.java:176)
at org.jvnet.ws.wadl2java.Main.main(Main.java:120)
Environment
Windows XP
Affected Versions
[current]
The text was updated successfully, but these errors were encountered:
When trying to generate the code from a web based password protected WADL instead of a file, you need the ability to either include the username/password in the URL or you need to have a -username and -password parameter to add the data for authentication.
Either this:
http://USERNAME:PASSWORD@HOSTNAME/PATHTOWADL/wadl.xml
or this should work
-user USERNAME -password PASSWORD http://HOSTNAME/PATHTOWADL/wadl.xml
Currently if you try the 1st, You get this:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://USERNAME:PASSWORD@HOSTNAME/PATHTOWADL/wadl.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
at java.net.URL.openStream(URL.java:1010)
at org.jvnet.ws.wadl2java.Wadl2Java.processDescription(Wadl2Java.java:217)
at org.jvnet.ws.wadl2java.Wadl2Java.process(Wadl2Java.java:176)
at org.jvnet.ws.wadl2java.Main.main(Main.java:120)
Environment
Windows XP
Affected Versions
[current]
The text was updated successfully, but these errors were encountered: