Reputation: 134
I am wanting to write a scheduled agent, that calls a URL, which returns XML and will then create new documents in the database based on the XML data.
I know that LotusScript offers some classes that allows you to parse thru XML, but it requires the XML to be stored in a file.
I also know, that you can use some OLE objects in order to call the URL, but that only works on Windows machines. My agent however, would run on a Linux machine.
Is there a Java class or example code out there, that I could use in order to achieve this?
Any help would be greatly appreciated.
Upvotes: 0
Views: 54
Reputation: 14628
Yes, there's plenty of support in Java for retrieving data using the URLConnection class or the Apache HTTP Components, and mulitple techniques available for parsing XML. Note: you might run into problems with Java security on this, which is above and beyond the normal security concerns and controls in the Agent Manager that LotusScript is plugged into, do you might have to fiddle around with Java policy settings on the server.
Upvotes: 1