mibuso.com

Microsoft Business Solutions online community
It is currently Sat Aug 30, 2014 8:28 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Nav web services and javascript. Create or insert record ?
PostPosted: Wed Feb 15, 2012 2:24 pm 
Offline

Joined: Wed Feb 15, 2012 2:16 pm
Posts: 3
Country: United States (us)
Hi,

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

Cheers


Top
 Profile E-mail  
 
 Post subject: Re: Nav web services and javascript. Create or insert record
PostPosted: Wed Feb 15, 2012 3:04 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Thu Mar 13, 2008 10:50 pm
Posts: 52
Location: Croatia
Country: Croatia (hr)
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://navigateintosuccess.com/


Top
 Profile  
 
 Post subject: Re: Nav web services and javascript. Create or insert record
PostPosted: Fri Feb 17, 2012 9:59 am 
Offline

Joined: Wed Feb 15, 2012 2:16 pm
Posts: 3
Country: United States (us)
Thanks for you reply, but it would be great that someone showed and example, as I am not and Nav guy.


Top
 Profile E-mail  
 
 Post subject: Re: Nav web services and javascript. Create or insert record
PostPosted: Thu Feb 23, 2012 11:38 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Thu Mar 13, 2008 10:50 pm
Posts: 52
Location: Croatia
Country: Croatia (hr)
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://navigateintosuccess.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: