javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

Basic Authentication with wsimport does not allow @ in username #1243

Open dvilaverde opened 6 years ago

dvilaverde commented 6 years ago

To authenticate with the webservice I used something like http://user%40example.org:password@host:port/service?wsdl in the authfile of wsimport.

Issue https://github.com/javaee/metro-jax-ws/issues/1101 addressed this issue in passwords by url-decoding the password after reading from the authfile. Same should be done for username.

Affects version

[2.3.0]

The command I used was:

wsimport -keep -d /output -verbose -Xnocompile -Xauthfile /temp/auth.txt http://localhost:8080/app/soap/Service?wsdl

ant the contents of auth.txt are

http://user%40example.com:password@localhost:4430/localhost:8080/app/soap/Service?wsdl