Re: TokenMaker
Posted: Tue Jul 27, 2010 7:43 pm
This is an example of a very simplistic web service implementation. Others are far more complex, and in general, the term WebService typically implies the use of the SOAP or REST protocols to transmit data and each of these can have things that just are not practical in a macro language for use by the general public(ie, it requires the macro writer to have a far deeper knowledge of Web Service protocols than they typically have)Hawke wrote:Maybe I'm misunderstanding the compendium... but...jfrazierjr wrote:While web services are not extremely hard, I really don't think that they are easy enough to fit int any macro based paradigm. There are just way to many possible options that this sort of thing really needs to be implemented via direct java coding. One a side note, one of the most important things in 1.4 is plugin architecture which would be exactly where something like this should reside if someone wanted to plug it into MT.
1) CompendiumSearch("Power","Cleave")
2) Looks up http://www.wizards.com/dndinsider/compe ... &tab=power
3) Returns the ID(s) or for the one I want 992
4) CompendiumPower(992,"json")
5) Looks up http://www.wizards.com/dndinsider/compe ... spx?id=992
6) returns JSON verson of the above
The framework developer can then strip what it needs to from that. Now obviously I'm using the GET methods in the above example, but there you have it.