0

I have a web service and I want unmarshall and generate java classes. To reach my web services I need to login with basic authentication. So whenever I try to run

xjc -d src https:/www.example.com/ws/service?wsdl -wsdl -verbose

I get HTTP response code : 401 for url : https:/www.example.com/ws/service?wsdl

I have proxy as well but I use

 -httpproxy myusername:password@proxyserver:proxyport 

Is there any way to authenticate my account first?

Sahin Yanlık
  • 1,171
  • 2
  • 11
  • 21
  • This is basically a duplicate for: https://stackoverflow.com/questions/45795362/generate-java-classes-from-a-wsdl-url-with-basic-authentication – lexicore May 10 '18 at 19:22
  • 1
    `xjc` does not support basic auth. Download WSDL and compile it locally. – lexicore May 10 '18 at 19:23

0 Answers0