Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8242309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:07:31+00:00 2026-06-07T21:07:31+00:00

I am developing an app under Java that has to call at some point

  • 0

I am developing an app under Java that has to call at some point a web service developed under navision that requieres domain user/pass which I have been provided with.

Right now this WS is not public, and I have to connect to certain VPN with different user/pass to be able to call the web service so I can properly test my code.

Every time I call it, I get a 401 code as a response, refusing my authentication.

I have tried using java.net.authenticator setting a default authenticator and org.apache.commons.httpclient setting default credentianls in the proper scope and still no positive answer was received.

I have also tried using external testing with soapUI without success, although I am not 100% configutation is correct.

Anyway, how can I identify the source of my authentication problem?

I am not sure if this is due to the fact that I am testing under vpn connection or ratther navision web services require some kind of special treatment, or both of these situations simultaneously.

I will welcome any thoughts, approaches, or comments.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:07:33+00:00Added an answer on June 7, 2026 at 9:07 pm

    One thing to check is the “WebServicesUseNTLMAuthentication” setting in NAV’s middle-tier “CustomSettings.config” file. My understanding is this property needs to be set to “true” when you are not (or can’t) use SPNEGO to authenticate, which is Microsoft’s preferred and default method.

    Some additional detail can be found in this MSDN article.

    Also, Freddy Kristiansen (a software architect on the NAV team) wrote a great series of articles on his blog about how to connect to NAV web services from a variety of different platforms. The one’s most relevant to your project are connecting to NAV web services in general and connecting to NAV web services from Java.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web app that needs some sort of filesystem access. Ideally I'd
I am developing an Android App that gets some data from a web server,
I'm developing an app locally (under Domain name <mydomain>.dev ). In order to work
I'm developing web app that user can save his/her work to server. The data
I'm developing a Win Service app that hosts a WF service and a WF
I'm developing a GWT web app. I write the code in java in client
I am developing a ASP.NET MVC web app under .NET 3.5, NHibernate and hosted
Hy, I'm developing a Grails app which has to communicate with an existing Java
i'm developing an app that make requests to the Musicbrainz webservice. I read in
I'm developing a web app with Spring and Hibernate and I was so obsessed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.