How do I publish an MS Dynamics NAV page as a web service?

MS Dynamics NAV page as a web service

Answers

  • SanderDkSanderDk Member Posts: 497
    You search for "Web Services", and open the page 810.
    Then you and the the page you want to expose as a webservice
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • vlcsolutionsvlcsolutions Member Posts: 6
    Web services are a lightweight way to make application functionality available to a variety of external systems and users. In Dynamics NAV, you can expose pages, code units, and queries as web services. When you publish Dynamics NAV objects as web services, they are immediately available on the network.

    To create and publish a web service follow the below steps:

    Step 1: Open the Microsoft Dynamics NAV Windows client or the Microsoft Dynamics NAV Web client.

    Step 2: In the Microsoft Dynamics NAV Windows client, in the Search box, enter Web Services, and then choose the related link.

    Step 3: In the Microsoft Dynamics NAV Web client, choose the Search for Page or Report button, enter Web Services, and then choose the related link.

    Step 4: In the Web Services page, choose New.

    Step 5: In the Object Type column, select Codeunit, Page, or Query.

    Step 6: In the Object ID column, select the object ID of the object that you want to expose. For example, to expose the customer card as a web service, enter 21.

    Step 7: If the database contains multiple companies, you can choose an object ID that is specific to one of the companies.

    Step 8: In the Service Name field, assign a name to the web service. For example, if you expose the customer card as a web service, enter Customers.

    Step 9: Select the checkbox in the Published column.

    Step 10: When you publish the web service, in the OData URL and SOAP URL fields, you can see the URLs that are generated for the web service. You can test the web service immediately by choosing the links in the OData URL and SOAP URL fields.

    Click here
Sign In or Register to comment.