HTTPS upload / download
Betrachter84
Member Posts: 62
Hi
I need to upload / downlad EDI (x12) text files via HTTPS. Is there some built in functionality in NAV? Could i still use the Automation Microsoft XML, v6.0'.XMLHTTP if i wasn't to transmitt a .xml but a .txt file with no xml structure?
By the way this is not a lanham implementation, we did it ourself.
Thanks for any tipps!
I need to upload / downlad EDI (x12) text files via HTTPS. Is there some built in functionality in NAV? Could i still use the Automation Microsoft XML, v6.0'.XMLHTTP if i wasn't to transmitt a .xml but a .txt file with no xml structure?
By the way this is not a lanham implementation, we did it ourself.
Thanks for any tipps!
0
Comments
-
No method that I know of in Nav Classic. An automation call is probably your best best.0
-
that's what i assumed...
do you have any idea what automation i could look for, is there some windows built in service?0 -
Betrachter84 wrote:that's what i assumed...
do you have any idea what automation i could look for, is there some windows built in service?
Unfortunately not - I'm sure it exists, but will probably take a little hunting. .NET? SOAP? A third party dll? I believe web services in 2009R2 has it, but you'd have to install a webservices instance.0 -
You can "throw away" HTTPS validation procedure by implementing "ServerCertificateValidationCallback" like this:
System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };I use it in case of calling NAV HTTPS web services from .NET and it works perfectly:WscService01.WSC wsc = new WscService01.WSC(); wsc.Url = "https://servername:7047/DynamicsNAV/WS/CompanyName/Codeunit/WSName"; wsc.UseDefaultCredentials = true; System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; object retVal = wsc.AnyFunction(...params...);I suppose you can not implement directly a callback function in NAV using .Net interoperability so You have to create some simple COM component (Automation).0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 329 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