OpenNTF.org - Stubby
Stubby[/Projects/pmt.nsf/ProjectView?ReadForm&Query=]

Project: Stubby (Managed by Julian Robichaux)
 | 
Open Source Licensing for this Release - Please visit http://www.opensource.org for more information on licensing.
Academic Free License
| This release: | 1722 |
| All releases: | 1786 |
| Release Name | Stubby 1.1 |
| Build Number | 1.1 (used by version checker) |
| Released On | 08/29/2006 |
| Released By | Julian Robichaux |
| Released for ND version | R 7.0.x |
| Status | Released |
| Feature Requests addressed | No feature requests addressed in this release |
| Reported Bugs fixed | No reported bug fixes addressed in this release
Added information about passing a name and password for web services that require authentication |
| Project Category | Software Development Tools |
| Sub Category | |
| Download Classification | Anonymous |
New in Release 1.1:
* Added the ability to pass a user name and password to authenticate (for basic authentication) or pass a session cookie (for session-based authentication) when you're calling a web service, and provided information on how this works in the example code
* Source files are now also zipped up with their directory structure intact, for convenience if you want to recompile the source files yourself
Otherwise...
All you have to do is create a new Stub Doc in the database, enter the URL of the WSDL file you want to make stubs for, and click the "Generate Stub Files" button. Everything you need to start writing an agent will be generated for you!
The magic that happens when you click the "Generate Stub Files" button is mainly controlled by the "StubGenerator" script library. The methods in this library will:
* Read and parse the WSDL file
* Generate stub files (Java source files) in a temporary directory
* Package the stub files up in a zip file
* Compile those stub files into java class files
* Package the class files up into a JAR file
* Generate sample agent code based on the stub files
The normal course of action after doing all this (it's all done with the single button click) is to create a new Java agent, paste the sample code into it, and use the "Edit Project" button in the agent to attach the JAR file. You now have a working agent that can call a web service! |
| Lotus Notes 7.x client/server (this will NOT work on clients or servers earlier than 7.0) |
If you access a service that returns a complex data type (normally only a problem with nested complex types), you may get an error like this:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Not sure what to do about that one I'm afraid. It's due to the old version of Apache Axis that is used by Notes. I've read in some places that upgrading to the latest version of Axis will fix it, but that's not necessarily an option here. I'm still looking for a good workaround... |
|
Modification history
| Entered 29-Aug-2006 23:30 by Julian Robichaux. Last Modified <none> by <none>. |
Check out other projects
Switch to project: