2

Is there a way for an RPG program to call a web service? I would prefer an ASP.Net web service but would be fine with a winform app or a web page.

I'm wanting make an internet service available to the iseries by creating a gateway.

Bill Martin
  • 4,825
  • 9
  • 52
  • 86
  • 2
    For a couple of seconds there I was wondering why this was a problem for Role Playing Games, when eventually the dust blew off some 20+ year old neurons and I thought "Oh, that RPG, OK then . . ." :) – Binary Worrier Sep 13 '11 at 14:34
  • @Binary, the tag explains that it is NOT roleplaying games. Though some still use as such. – Mike Wills Sep 13 '11 at 14:38

1 Answers1

7

Scott Klement has written about how to do this. Our RPG developers have used his articles and call our .NET web services in many of their newer programs.

Start here: http://www.scottklement.com/presentations/#HTTPAPI

Dan Puzey
  • 33,626
  • 4
  • 73
  • 96
David
  • 72,686
  • 18
  • 132
  • 173
  • Have you found any problems with this approach with more complex scenarios? – Thorbjørn Ravn Andersen Sep 14 '11 at 09:15
  • @Thorbj0rn Ravn Andersen - The only problem we came across was a limitation of the number of characters in the web service function names. Some of our functions had longer names than the iSeries would support, so on the .NET side, we made functions with shorter names that simply called the corresponding function with the long name. For example, a function named LogCallToHeatViaApi() was too long, so we wrote a method called ApiLogCall(), which internally just called the original. – David Sep 14 '11 at 15:53