Data modify using OData Web Service in NAV 2013

lakshanvindanalakshanvindana Member Posts: 79
edited 2014-03-17 in NAV Three Tier
Dear Experts,

I'm having an issue when I try to add/modify data using Web Service.

version : NAV 2013
OS : Win 07
Service : OData

1. Can use OData service to add/modify data?
(because I saw a demo doing so, but with NAV 2013 R2)

2. Any idea about following error?

Thank you.
Lakshan Kulawansa
ERP Consultant - MS Dynamics NAV
https://lk.linkedin.com/pub/lakshan-vindana-kulawansa/37/2a2/592

Answers

  • krikikriki Member, Moderator Posts: 9,110
    1. with NAV2013 : no ; with NAV2013R2 : yes

    2. what did you do?
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • lakshanvindanalakshanvindana Member Posts: 79
    thank you for the reply

    1. understood, can u please tell me how to use SOAP to read,add,modify,delete.

    2. this is when i try to add/modify data using OData in 2013 :D
    Lakshan Kulawansa
    ERP Consultant - MS Dynamics NAV
    https://lk.linkedin.com/pub/lakshan-vindana-kulawansa/37/2a2/592
  • krikikriki Member, Moderator Posts: 9,110
    1. Reading : you can use ODATA to do that: I am using it and it is very easy to do. Just create a page to show the data and then publish it in webservices.
    For receiving data using webservices, create a codeunit with functions with parameters in which you receive the data. If there are just a few fields, you can put the fields as parameters otherwise, you need to create an XML-port and put that as as a parameter in the function.
    That codeunit has also to be published as a webservice.
    You can use SOAPUI to call the webservice to send some data into NAV.

    Explaining how to this is a little too long for this post, so do some research in the online help of NAV on how to prepare the webservice and some googling/binging/duckduckgoing to find out how to use SOAPUI.

    2. :thumbsup:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • lakshanvindanalakshanvindana Member Posts: 79
    thank you :thumbsup:
    Lakshan Kulawansa
    ERP Consultant - MS Dynamics NAV
    https://lk.linkedin.com/pub/lakshan-vindana-kulawansa/37/2a2/592
Sign In or Register to comment.