Consuming NAV Webservice from SAP

JanGD
Member Posts: 12
Hello,
we are currently trying to implement a Webservice-"way" from SAP to NAV.
We already succeeded in creating it from NAV to SAP.
But the NAV webservice demands AD-Credentials.
Is there any workaround for webservices to get a connection or is the only way to write a webservice proxy that makes an AD auth with the name/password and forward that to the NAV webservice then?
Thanks for your help
Yours sincerely
Jan
we are currently trying to implement a Webservice-"way" from SAP to NAV.
We already succeeded in creating it from NAV to SAP.
But the NAV webservice demands AD-Credentials.
Is there any workaround for webservices to get a connection or is the only way to write a webservice proxy that makes an AD auth with the name/password and forward that to the NAV webservice then?
Thanks for your help
Yours sincerely
Jan
0
Comments
-
Hi!
Not sure if I could catch which way you are referring to about who is calling who. But here is an example from a ASP .NET web site calling NAV web service from another domain. Hope this brings you further. Not sure which possibilities there are in SAP of course.//WS_DynamincsNav_MyInvoices.MyInvoices MyInvoices myInvoicesService = new MyInvoices(); myInvoicesService.UseDefaultCredentials = false; NetworkCredential credentials = new NetworkCredential("username", "password", "domain"); myInvoicesService.Credentials = credentials; myInvoicesService.PreAuthenticate = true; string xmlBT = ""; myInvoicesService.GetMyInvoices(ref xmlBT);
0 -
Well SAP wants to use NAV Webservice, so SAP consumes NAV Webservice.
But SAP (afaik) does not support AD Auth, which is required for NAV.
Your code consumes a webservice from C#. But C# in SAP? I don't think so ;-)
Cheers,
Jan0 -
JanGD wrote:Well SAP wants to use NAV Webservice, so SAP consumes NAV Webservice.
But SAP (afaik) does not support AD Auth, which is required for NAV.
Your code consumes a webservice from C#. But C# in SAP? I don't think so ;-)
Cheers,
Jan
Hi
"MrWho" showed an example of NTLM authentication, providing User&Password instead of current Windows Authentication (kerberos) credentials...
MatteoReno Sistemi Navision Developer0 -
Still, you can't program C# in SAP.0
-
I am afraid that they cannot do that directly in SAP... :-) I assume that SAP have some own environment for calling the webservices and it doesn't knowhow to do the authentication... :-)0
-
kine wrote:I am afraid that they cannot do that directly in SAP... :-) I assume that SAP have some own environment for calling the webservices and it doesn't knowhow to do the authentication... :-)
Thanks for understanding me. So it is verified. I was afraid about the answer.
Well, SAP knows only the Basic Auth, means "i give userid and password, let me in", instead of "Here is my kerberos ticket" *door opens* ;-)
Seems i have to write a WS Proxy service for adding that Credentials.0 -
There is property in the NAV server config file to enable NTLM instead for authentication. May be it will help you to use the basic to pass the login and password and not the Kerberos ticket... try it, it is used e.g. when connecting from Java...0
-
Here is a web proxy for nav 2009 before NTML config setting was added ton NAV 2009.
http://mibuso.com/blogs/ara3n/2009/05/0 ... b-service/
It's basically a windows service that communicates with nav web service.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