Options

Authorization Error in Java and NAV Web Service Integration.

Amitava_MitraAmitava_Mitra Member Posts: 35
edited 2011-11-03 in NAV Three Tier
Hi,

We are trying to integrate NAV 2009 SP1 with a Java/Oracle based application through the web-services. Basically the objective is to transfer data between central NAV-SQL ERP database to the local databases of the application through web-services.

The infrastructure is the SQL database, NAV Webservice and NAV Service is running in the same server.

We have been able to publish web-services in NAV and able to consume them using simple MS Office InfoPath project and succssfully able to read/write data in the NAV-SQL Database.

However, it is constently throwing error <401> Unauthorized, while connctting through the Java application. We have already set NTLM authentication for the web service as "false" in the web service config file.

Any help would be of great help. Thanks in advance.


Thanks,
Amitava

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    However, it is constently throwing error <401> Unauthorized, while connctting through the Java application. We have already set NTLM authentication for the web service as "false" in the web service config file.


    You need to set it to "True"
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    Amitava_MitraAmitava_Mitra Member Posts: 35
    Thanks for your post.

    But even if I set the "WebServicesUseNTLMAuthentication" as "True" in CustomSettings.config file, it is not working with Java, whereas perfectly working from other applications like InfoPath or even .NET as well.

    Is there any web-service (generic or specific to NAV web-services) authentication issues with Java platform, or any special settings need to be done? We tried almost everything on the server, like turning off firewell, using administrator to login to the web-service etc., still no positive result. ](*,) ](*,) ](*,)
    Though it is the simplest setup having everything in a single server box, still not working.

    Is it possible to share a working sample code of Java / NAV web-service integration which can be tested?

    Thanks for your help.

    Regards,
    Amitava
Sign In or Register to comment.