Date Name Downloads
Aug 29, 2006 Stubby 1.1 4361
Stubby 1.1
Stubby 1.1
Aug 29, 2006
Academic Free License
4361

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!