NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: EdwardLoh on February 17, 2025, 12:37:05 PM

Title: How to handle A Web Service Call with this format: Domain/ServiceMethodName
Post by: EdwardLoh on February 17, 2025, 12:37:05 PM
Hello Everyone,

Mostly using the NetTalk Wizards, I have been able to created a few web service servers.  The API has always been in this format: DomainName/SerivceName/MethodName.  This works great when I have control of my API.  However, I need to replace a third party web service which uses this calling format: DomainName/MethodName.

How do I setup my NetTalk Web Service Server to accept this URI and trigger the corresponding method procedure?

Edward
Title: Re: How to handle A Web Service Call with this format: Domain/ServiceMethodName
Post by: Alberto on February 17, 2025, 12:46:04 PM
You can do it, no problem.
Title: Re: How to handle A Web Service Call with this format: Domain/ServiceMethodName
Post by: EdwardLoh on February 17, 2025, 03:00:34 PM
Hello Alberto,

Thank you for the kind words.

Do you have an example or a link to any description on how to use NetTalk to response to this format.  From the NetTalk web server log, I noticed that the action is blank and, therefore, the server does not know how to response.

Regards,

Ed
Title: Re: How to handle A Web Service Call with this format: Domain/ServiceMethodName
Post by: Alberto on February 18, 2025, 04:25:29 AM
Eduard, you dont have to do anything, even if you test the service using a browser, the nettalk example does not include the service name, just the IP/MethodName
Regards
Title: Re: How to handle A Web Service Call with this format: Domain/ServiceMethodName
Post by: EdwardLoh on February 18, 2025, 12:05:57 PM
Hello Alberto,

Many thanks for the help.

I must have made a typo when I tried with my browser earlier because I could not get the server to respond with just IP/MethodName.  I looked at example #77 and it worked.  So, I try my server again and it also worked.

Regards,

Ed