Consume Webservice and Import data in Navision

Hi All,

Hope you are all doing well.

I want to consume webservice(GET) and import that data(Xml format) into Navision table. Is there any code reference to consume and import data from Webservice.

If you need more info about requirement. Please ping me.

Thanks.

Answers

  • vaprogvaprog Member Posts: 1,140
    What kind of web service are you talking about? REST?
    Please have a look at Codeunit 1297 Http Web Request Mgt.


  • PradeepJoshPradeepJosh Member Posts: 5
    Thanks @vaprog .

    I am trying to consume NAV 2013 webservice in BC.
  • vaprogvaprog Member Posts: 1,140
    So that's Codeunit 1290 SOAP Web Service Request Mgt. then.

    You will likely have to extend that codeunit to be able to send a SOAPAction HTTP header.
  • PradeepJoshPradeepJosh Member Posts: 5
    Is it possible to get data and insert into Navision table using SOAP Web service Mgt codeunit?
  • vaprogvaprog Member Posts: 1,140
    Do you get any error?
    There are no different types of SOAP request depending on what action you request. It's only the request XML and the SOAPAction header.
  • PradeepJoshPradeepJosh Member Posts: 5
    If you have any piece of code to Get data from other webservice and insert into Navision Table. Please share it.
  • vaprogvaprog Member Posts: 1,140
    Check out Codeunit 248 VAT Lookup Ext. Data Hndl as an example

    There are more examples in the standard application.
Sign In or Register to comment.