Hello,
i try to consume a nav2009 webservice with java.
My problem is the authentification on the Webserver, when I call the service then i get the message
"HTTP/1.1 401 Unauthorized"
When i open the WSDL over Firefox or IE6 i get a blank Page.
I've try to debug it with FireBug and i have the same Error (401 Unauthorized).
It works only correct with IE7 and C#.
I found nothing in the MSDN or NAVdocumentation aboute the Authentification on the Webserver.
Does any body know how the Authentification works?
Use Microsoft NTLMv2 for Authentification?
Is it possible to config the Webserver Authentification?
regards
Hans51
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Yes i have Credentials in Java and i have try any auth.-methods to connect to the webserver.
I get every time the error message:
HTTP/1.1 401 Unauthorized
Content-Length: 0
Server: Microsoft-HTTPAPI/1.0
WWW-Authenticate: Negotiate
The Problem is not the Webservice, i can create the Stubs proper.
The best way is to diable the Authentification, my Server is in a DMZ.
Is it possible to use a IIS/Tomcat to publish the Webservices, or disable the Auth. by the configfile of NAV Webserver?
http://java.sun.com/javase/6/docs/techn ... -auth.html
And utter the cryptic phrase "Where our implementation is using Http SPNEGO Negotiate".
Best of luck, please post an update here if you get any further!
Hello. In order to see the webservice in Firefox, you need to follow the following direction
Out of the box the Firefox negotiate authentication is disabeled, to make it work you have to configure your Firefox Browser to use the negotiate authentication first.
1. Start firefox, enter about:config to the address field.
2. choose the network.negotiate-auth.trusted-uris parameter, set this value to the domain or machine name you want to activate Negotiate for.
http://grolmsnet.de/kerbtut/firefox.html
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have try the Guide. Here is the Debug output:
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Main:
just shoot in the dark but have you tried
httpconn.setRequestProperty("Authorization", "Negotiate " + encoding);
httpconn.setRequestProperty("Proxy-Authorization", "Negotiate " + encoding);
Also have you looked at this solution
http://thejavamonkey.blogspot.com/2008/ ... beros.html
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
import microsoft_dynamics_schemas.LettersLocator;
import microsoft_dynamics_schemas.Letters_Port;
import sun.security.krb5.internal.Authenticator;
in to eclipse ide
iam using same code given in mysourcecode example.