0 Replies Latest reply on Apr 24, 2013 5:55 PM by 888525

    error while using wsimport

      I am trying to use the wsimport command the following way and get the following error

      wsimport -Xauthfile authFile.txt "http://myMachine/reportserver/reportExecution2005.asmx?wsdl"

      [ERROR] Server returned HTTP response code: 401 for URL: http://myMachine/rep
      ortserver/reportExecution2005.asmx?wsdl, "http://myMachine/reportserver/repo
      rtExecution2005.asmx?wsdl" needs authorization, please provide authorization fil
      e with read access at C:\Users\userid\.metro\auth or use -Xauthfile to give t
      he authorization file and on each line provide authorization information using t
      his format : http[s]://user:password@host:port//<url-path>

      I have defined my auth file as


      I created a directory C:\Temp
      Under this i run the command for wsimport and at this location i have a file named authFile.txt which has the above content as mentioned.
      I am providing the userid and passoword and other details as requested in the auth file but still it is giving auth error.
      Is there a different location where i need to keep the authfile or any mistake I am doing.