Nav web services and javascript. Create or insert record ?

nicetobenicetobe Member Posts: 4
edited 2012-02-23 in NAV Three Tier
Hi,

Can anyone give an example how to create record in Nav with webservices and javascript ?

Cheers

Comments

  • VjekoVjeko Member Posts: 55
    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/
  • nicetobenicetobe Member Posts: 4
    Thanks for you reply, but it would be great that someone showed and example, as I am not and Nav guy.
  • VjekoVjeko Member Posts: 55
    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/
Sign In or Register to comment.