Author Topic: Restful API & Integration of nwn With WebServices  (Read 702 times)

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Restful API & Integration of nwn With WebServices
« on: July 09, 2012, 05:15:55 pm »


               I used to have my PW Hooked up to my forum etc, via database connections and php cronjobs.

But, as my technical knowledge is growing, I am actually considering the use of either

SOAP Requests, and / or Restful API's


For example

Imagine a player comes into your PW
You could have a Rest API Call  or SOAP Request, fired off, to find out if that player has registered on your forum.

The response could be returned to your game.
Depending on the request, your player could get a Dialog appearing, asking if they would like a new Forum Account created with their playerName as the username.
They select Yes
They can then use the onChat event to set their E-Mail address

They End the Dialogue.


The server then sends a Soap Request  or makes a REST API Call to a webservice
Providing the arguments needed.

This call then triggers a more complex method, that would then create the necessary database entries, for that user to have a login for the forum.

An e-mail is then sent to the provided address.



Has anyone tried webservice integrations in nwn on this scale?

Im eager to give it a try.
With some C# knowledge, and use of nwnx_system - I think it can be done in an asynchronous way, without causing any ingame lag.