Skip to main content

Running Multiple Web Service In NAV 2009, 2009 SP1 & 2009 R2.

Hi all,

In all the previous posts we have discussed about how to create multiple NAV Services to Run Multiple RTC for same or Different version of Role Tailored Client.

But we never discussed about how we can create multiple Web Services.

I required to Publish Multiple Web services and that is the reason i come up with this Post. Hope you will find it use of this post somewhere.

You might be thinking what new will be there as we create Navision services we can also create web services too.

Yeah you are right but there are some fix parameters will differentiate between a web service and a NAV Service. Lets see.

Here is a image of my services before i start -


As you can see currently there are two services, 1 web service and one NAV Service.

As you have gone through multiple post about creating multiple services some of the steps below are same -

1) Copy the service Folder - Default Path -C:\Program Files (x86)\Microsoft Dynamics NAV\60

2) Rename the copied to Folder say Service 2.


3) Open the config file of from the new folder created and change the below listed things -

   a) Port No. - (if Port sharing is not enabled).
   b) Server Name.
   c) Database Name.
   e) Server Instance.

  

4) Open Command Prompt, RUN as administrator.

5) Copy the command give below after changing the name and folder name as per your requirement.

SC CREATE "MicrosoftDynamicsNAVWS$WS2" binpath= "C:\Program Files (x86)\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $WS2" DisplayName= "Microsoft Dynamics NAV Business Web Services2" start= auto obj= "NT Authority\NetworkService" type= Share depend= NetTcpPortSharing

Where Bold Parameters are mandatory. 

These parameters identifies that the service to be created is a web service -
MicrosoftDynamicsNAVWS 
$WS2
type= Share

Copy the command in Command Prompt and hit enter.

Service will be created successfully.



If you skip the parameters specified above you might end up with the error message shown below.


So make sure that you keep in mind about the bold parameters and create service again. It will work fine.

Thanks & Regards,
Saurav Dhyani

Comments

Popular posts from this blog

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing - 

Dynamics 365 Business Central 2021 release wave 2 (BC19) Released.

Hi Readers, As we all were expecting Microsoft have Released Business Central 2021 Release Wave 2 Today a.k.a BC19. In this article we will see what all is announced with the General Availability.  Starting Today Customers & Partners can start using Business Central 19. #msdyn365bc #bc19

MSDYN365BC - Data Upgrade To Microsoft Dynamics 365 Business Central on premises.

Hi Readers, We have already talked about the number of steps for upgrading to Business Central on Premises from different NAV versions. After that article, I received multiple requests for an article which list down steps for Data Migration. In this article, we will discuss steps of data migration to MSDYN365BC (on-Prem) from NAV 2017. For this article, I am considering a Cronus Demo Database without any customization. For an actual upgrade project, we will have to complete object merge using compare and Merge process. After the Merge Process, the next step is data migration. Let's discuss those steps. Direct Upgrade to Microsoft Dynamics 365 Business Central (on-Prem) is from following versions - 1. NAV 2015. 2. NAV 2016. 3. NAV 2017. 4. NAV 2018.