I need to connect to Web services while in Java. I followed instructions on this blog:
http://blogs.msdn.com/b/freddyk/archive ... -java.aspx
but I when i run the the command: C:\java>wsimport -d generated -s source
http://localhost:7047/DynamicsNAV/WS/SystemService i get an error that requires me to provide a user name and password, it says:
[ERROR] Server returned HTTP response code: 401 for URL:
http://localhost:7047/DynamicsNAV/WS/SystemService, "
http://localhost:7047/DynamicsNAV/WS/SystemService" needs authorization, please provide authorization file with read access at C:\Users\developer\.metro\auth or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http
/user:password@host:port//<url-path>
I may be missing out something but the blog did not specify details on how we provide authentication when this command is run so please assist me, I need to import a web reference of a Dynamics web service to my java project
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Try to use Credential Manage in Windows 7 to save login and password for your server. Than it should use the correct login when opening the site...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
[ERROR] Failed to read the WSDL document: http://localhost:7047/DynamicsNAV/WS/SystemService, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>. unknown location
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
There are files that will be placed on my Windows 2008 server machine in a specified folder at random. There is a program that will be listening and logging file names of all files received in this folder. The names are passed to an nav code unit which i have exposed as a service and processing occurs.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.