Nav web services and javascript. Create or insert record ?

nicetobe
Member Posts: 4
Hi,
Can anyone give an example how to create record in Nav with webservices and javascript ?
Cheers
Can anyone give an example how to create record in Nav with webservices and javascript ?
Cheers
0
Comments
-
http://blogs.msdn.com/b/freddyk/archive ... cript.aspx
It explains how to read, but once you know how to read it, writing is very simple.
I suggest you to use Fiddler (google for it if you don't know what it is) and see the exact format of the message as it travels through, and it will explain to you how to construct the message.(Co-)author of "Implementing Microsoft Dynamics NAV 2009"
http://vjeko.com/0 -
Thanks for you reply, but it would be great that someone showed and example, as I am not and Nav guy.0
-
I'd really like to show you an example, as plenty of other folks would probably like too, but it takes a while to compose one, and that's why I figure you haven't got it yet.
But, you can make your example yourself. Follow these steps:
1) Install Fiddler tool (google "fiddler web debugger")
2) Make a simple program in C# (for example) which inserts a record in web services
3) Catch the SOAP message with fiddler
And there you go - you see the whole message with all of its elements. Freddy has already shown how to create a SOAP message in javascript, by replacing whatever Freddy has shown for reading records, with whatever you catch in Fiddler, you can easily create records.
I hope this helps.(Co-)author of "Implementing Microsoft Dynamics NAV 2009"
http://vjeko.com/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