Multiple Web Services - same Server using different TCP Port
bbender
Member Posts: 28
We are running multiple customers on the same server. I don't have any problems with the RTCs, they work using different TCP ports - I just change the Custom config file. I am having trouble creating multiple Web Services.
This is the command I use to create the Web Service:
sc \\sql-dev create MicrosoftDynamicsNAVWS$NAVCommerceInsight2009DevWS binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service CommerceInsight2009Dev\Microsoft.Dynamics.Nav.Server.exe $NAVCommerceInsight2009Dev" DisplayName= "Microsoft Dynamics NAV Web Server Instance CommerceInsight2009Dev" start= auto type= own obj= "NT Authority\NetworkService" depend= HTTP
This is for the RTC:
sc \\sql-dev create MicrosoftDynamicsNAVServer$NAVCommerceInsight2009Dev binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service CommerceInsight2009Dev\Microsoft.Dynamics.Nav.Server.exe $NAVCommerceInsight2009Dev" DisplayName= "Microsoft Dynamics NAV Server Instance CommerceInsight2009Dev" start= auto type= own obj= "NT Authority\NetworkService
CommerceInsight2009Dev would be the Service for both.
Serivce port is 7062 and web service is 7063.
I can not get them both running at the same time.
Also, the web service does not seem to work at all. the RTC works fine.
We do have the standard Demo with the WS running on the same server and they both are working.
Any help would be great.
I find using different TCP ports easier - just changing the Config file to the correct port.
Thanks,
Bruce Bender
iCepts Technology Group, Inc.
phone: 717-704-1000 x 3014
email: bbender@icepts.com
This is the command I use to create the Web Service:
sc \\sql-dev create MicrosoftDynamicsNAVWS$NAVCommerceInsight2009DevWS binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service CommerceInsight2009Dev\Microsoft.Dynamics.Nav.Server.exe $NAVCommerceInsight2009Dev" DisplayName= "Microsoft Dynamics NAV Web Server Instance CommerceInsight2009Dev" start= auto type= own obj= "NT Authority\NetworkService" depend= HTTP
This is for the RTC:
sc \\sql-dev create MicrosoftDynamicsNAVServer$NAVCommerceInsight2009Dev binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service CommerceInsight2009Dev\Microsoft.Dynamics.Nav.Server.exe $NAVCommerceInsight2009Dev" DisplayName= "Microsoft Dynamics NAV Server Instance CommerceInsight2009Dev" start= auto type= own obj= "NT Authority\NetworkService
CommerceInsight2009Dev would be the Service for both.
Serivce port is 7062 and web service is 7063.
I can not get them both running at the same time.
Also, the web service does not seem to work at all. the RTC works fine.
We do have the standard Demo with the WS running on the same server and they both are working.
Any help would be great.
I find using different TCP ports easier - just changing the Config file to the correct port.
Thanks,
Bruce Bender
iCepts Technology Group, Inc.
phone: 717-704-1000 x 3014
email: bbender@icepts.com
0
Answers
-
They cannot run both - that is probably because both of them thinks that it is a ServiceTier (and no one wants to be a Web Service Listener)
Try to set type= share instead of own.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
I got further, but I'm getting this message:
The service MicrosoftDynamicsNavWS$NAVCommerceInsight2009Dev failed to start. This could be caused by a configuration error. Detailed error information:HTTP could not register URL http://+:7063/DynamicsNAVCommerceInsight2009Dev/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)..
Attached is the config file for the Service CommerceInsight2009Dev.
Server is sql-dev.
http://sql-server:7047:/DynamicsNAV/WS/Services works with the Demo database.
Thanks,
Bruce0 -
Have you looked at http://go.microsoft.com/fwlink/?LinkId=70353
I haven't tried to use different ports myself - I always use the same ports, just different instance names (I think it is easier to associate a name with a certain customer/database than a number) + it seems like firewall and HTTP configuration needs to be setup if you use different ports.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions