Android and Navision Web Services

GoyoGoyo Member Posts: 36
edited 2013-10-17 in NAV Three Tier
Hi everyone. I'm trying to access to Navision WebServices from an Android application, but I haven't had any success. I've been looking for help in this forum and others and I haven't been able to find any example for this matter. Has anyone [-o< an example of how to consume Navision WebServices from Android.

I'm consuming Navision WebServices from other sources, so I think my problem is with the Android code.

Thanks.

Comments

  • deV.chdeV.ch Member Posts: 543
    Does this help? http://blogs.msdn.com/b/freddyk/archive/2010/01/19/connecting-to-nav-web-services-from-java.aspx
    Java does not natively have support for the SPNEGO authentication protocol, but it does have support for NTLM authentication, so you will have to change the Web Services listener to use that.
  • GoyoGoyo Member Posts: 36
    deV.ch wrote:
    Does this help? http://blogs.msdn.com/b/freddyk/archive/2010/01/19/connecting-to-nav-web-services-from-java.aspx
    Java does not natively have support for the SPNEGO authentication protocol, but it does have support for NTLM authentication, so you will have to change the Web Services listener to use that.

    Thanks, but I've already tried that. The error I get is "Connection refussed", so I think it's something about authentication. The problem is I've found a few examples and with all of them I obtein the same error message. I think the problem is that those examples don't connect to Nav WebServices. And I think the problem with the example you suggest is that it doesn't connect from Android. Does anybody have a complete (Android+Nav) example working?
  • deV.chdeV.ch Member Posts: 543
    Well have you changed authentication to NTLM as it's suggested by freddy?
  • kadhirkadhir Member Posts: 1
    Hi Everybody,

    I have the same issue of "connection refused" even changed authentication to NTLM and restarted the server, i am connecting from android code using ntlm authentication library but i get the exception as connection refused.
  • ppavukppavuk Member Posts: 334
    why not to create webservice proxy? Proxy will have windows authentication, but website (or your application) can use whatever you want in that case. Anyway you need something to consume webservice on android end.
  • Ravi_ThakkarRavi_Thakkar Member Posts: 392
    Hello All,

    I think, this post is related to my problem as well.

    I have to develope one Android application that can talk with NAV 2013.
    My environment configuration is like below:
    One physical server, having 2 virtual machines resides on it.
    VM1-DBServer - OS-Windows Server 2012 Standard
    SQL-SQL Server 2012 BI Edition
    VM2-AppServer - OS-Windows Server 2012 Standard
    NAV-Version 2013
    If I have enabled the Live IP on this AppServer and want to start the Android Development from outside of domain through live IP, what are the steps required to be setup on NAV Server side or SQL Side so that Web-Services can be accessed from android developer. I am not sure, whether I am missing anything on NAV Side or Active Directory or IIS side. Or Android developer is making fault somewhere.

    FYI, the web-services that I have published, are accessible to JAVA development environment in outside of domain through Live IP.
    But, problem occurs while accessing the same from Android Development Environment. Android application got the 401 error stating unsuccessful authorization.

    Could anybody suggest me where can be the issue and hint toward the solution?
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
Sign In or Register to comment.