From: Mark F. <mar...@ea...> - 2004-10-17 20:52:16
|
----- Original Message ----- From: "Paul Kulchenko" <pau...@ya...> > >... It would be great if you could write a working > example with a real v2 server. Paul, I did write a working example which exercises *every* v2 inquiry method. The problem is, there was no good way I could think of to do this on any server (a real server) and know what the values are. It would have to start at the top (find_business) and drill its way down. That may not be a good example of each method since the example would be dependent upon the content of a server. It could take a lot of processing to get to a specific method a user wants to exercise. I opted for the ability to invoke a single method (API) with hard-coded values. Which means, the user would have to use a registry's UI to look up some values and plug them into the script. What I have would be easily modified into a "start from the top and drill down" script. I'm just not sure I would want an example like that if I were (as I am) the novice user. I'd rather the documentation say "go to a registry, look up some values and plug them into the script for the method you want to execute. At worst, its' just not going to find anything -- which is a good starting point to delve into why it didn't. I've attached the script and you're more than welcome to include it in the examples. I started to do a "publishv2" script. But, that got to be too tedious. I also felt it wouldn't be as useful since most people wouldn't have publish authority to any server. I figured if they could master inquiryv2, they could probably figure out how to inoke publishing calls. Maybe just an example of one publish to illustrate how to do authentication? I've got that. Mark |