NetTalk Central

Author Topic: Second NetWebService in same WebServer  (Read 1376 times)

ProperGary

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • Email
Second NetWebService in same WebServer
« on: March 24, 2022, 05:33:19 AM »
I have an API server configured and all working well, I want to add a second "service" to the same server - I want to separate all the lookup data into a separate service to retrieve codes/descriptions and keep separate from the main entity API.

I added a second NetWebService procedure to the application and added a single NetWebServiceMethod which is assigned to it.

My issue is that the seconds service does not appear in the services drop down in the documentation, I can get to it if I use the direct URL localhost/servicename?servicemethodname but not from the landing page.

I've clearly missed a step or an association somewhere, but can't find it.

Can anyone assist?
« Last Edit: March 24, 2022, 07:09:29 AM by ProperGary »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: Second NetWebService in same WebServer
« Reply #1 on: March 24, 2022, 07:18:23 PM »
did you add the Service as a method to the menu?
ie that "services drop down" is a menu, in the PageHeaderTag procedure, and if you add services, and you want the service in the menu, then you need to add it to the menu.

Cheers
Bruce

ProperGary

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • Email
Re: Second NetWebService in same WebServer
« Reply #2 on: March 30, 2022, 04:44:01 AM »
Spot on Bruce - many thanks, that has got it sorted.