Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

When Requesting a WADL from a URL you may need the ability to access a username/password protected page #45

Open
glassfishrobot opened this issue Dec 6, 2011 · 2 comments

Comments

@glassfishrobot
Copy link
Contributor

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]

@glassfishrobot
Copy link
Contributor Author

Reported by sirgeek

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA WADL-45

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants