I am new to Na vision and Java. I have a problem connecting to NAV web services from java.
We have a java website that our customers use and log in. My project is to allow this customers to access their customer report in NA VISION 09 through the public website (our java company website).
I have created a page in na vision called customer_statement page that i have exposed as a web-service.
To make Java able to see and use webservices I use wsimport to create proxy classes in Java. In a directory, I have created two empty folders (generated and source) and use the following command:
C:\Users\nomosa>echo
http://aa:pass@localhost:7047/DynamicsNAV/WS/Services 1>ws
xauth
C:\Users\nomosa>wsimport -verbose -d generated -s source -Xauthfile wsxauth http
/localhost:7047/DynamicsNAV/WS/Services
parsing WSDL...
[INFO] Trying to read authorization file : "wsxauth"...
[ERROR] Server returned HTTP response code: 401 for URL:
http://localhost:7047/D
ynamicsNAV/WS/Services, "
http://localhost:7047/DynamicsNAV/WS/Services" needs a
uthorization, please provide authorization file with read access at C:\Users\nom
osa\.metro\auth or use -Xauthfile to give the authorization file and on each lin
e provide authorization information using this format : http
/user:password@
host:port//<url-path>
AS you can see am stuck please help me