NetTalk Central

Author Topic: How to handle A Web Service Call with this format: Domain/ServiceMethodName  (Read 1914 times)

EdwardLoh

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
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

Alberto

  • Hero Member
  • *****
  • Posts: 1878
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
You can do it, no problem.
-----------
Regards
Alberto

EdwardLoh

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
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

Alberto

  • Hero Member
  • *****
  • Posts: 1878
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
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
-----------
Regards
Alberto

EdwardLoh

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
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