Connect two NAV databases by consuming NAV WS

Lec11
Member Posts: 91
Hello!
I'm trying to connect two NAV 2009 databases by using NAV web services. I was able to read data from another database by reading Freddy Kristiansen's blog: http://blogs.msdn.com/b/freddyk/archive/2010/01/22/connecting-to-nav-web-services-from-microsoft-dynamics-nav-2009-sp1.aspx. However I'm having difficulties in using page update method ... it seems much easier in using it in the .NET environment. Can somebody at least show me the right direction in using this method from NAV?
Thanks!
I'm trying to connect two NAV 2009 databases by using NAV web services. I was able to read data from another database by reading Freddy Kristiansen's blog: http://blogs.msdn.com/b/freddyk/archive/2010/01/22/connecting-to-nav-web-services-from-microsoft-dynamics-nav-2009-sp1.aspx. However I'm having difficulties in using page update method ... it seems much easier in using it in the .NET environment. Can somebody at least show me the right direction in using this method from NAV?
Thanks!
0
Answers
-
Meanwhile I became more interested in using .NET interop for consuming NAV web services from inside NAV. This happened after I found Waldo's very useful article http://dynamicsuser.net/blogs/waldo/archive/2010/12/30/nav-2009-r2-net-interop-calling-a-web-service.aspx.
I'm setting the security mode to TransportCredentialOnly, client authentication to windows and impersonation level to delegation. When I try to call from RTC the web service, I get the following authorization error:
This message is for C/AL programmers: The call to member Read failed: The remote server returned an error: (401) Unauthorized..
I get the error even if I run it from the same machine as the web service. Everything is setup correctly ... the web service is up and running, as long as I can call it with success from .NET application for example. Does anybody have an idea of what else do I have to check?
Thanks!0 -
Problem solved ... changed client authentication to Ntlm and it works.0
-
Lec11 wrote:Problem solved ... changed client authentication to Ntlm and it works.
the error message isAccess denied. Delegation or Impersonation permission is required for access.
is it the same as your problem?
how to solve it?0 -
the issue to the above error is delegation issue. You need to setup correct http SPN. take a look at MSDN documentation on how to setup 3 tiered environment.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions