How To: Use JSP code samples with old versions of Glue toolkit


Stubs, client side code including .class files, sometimes fail to work with versions of Glue other than the version they were created with. To generate stubs specifically for the currently installed version of Glue, use the wsdl2java command.


Use wsdl2java to create new stubs. Once completed, replace the old stubs with the new ones.

  1. Run wsdl2java at the command prompt against each ArcWeb Service used. For WSDL locations of these ArcWeb Services, see v2006.1 - ArcWeb Developer's Guide v2006.1, v2006 - ArcWeb Developer's Guide v2006, or v2 - ArcWeb Help v2.

    Example of wsdl2java that create Address Finder stubs in the esri.aws.v2006_1 package:

    c:/> wsdl.WSDL2Java http://www.arcwebservices.com/services/v2006_1/glue/PlaceFinderSample.wsdl -p aws.v2006_1.gluestubs -g

    Run this command from the same directory as the Glue license file: either glue-license.xml or webMethods-license.xml.

  2. Compile the .java files created in step 1.
  3. Replace the old Glue stubs, that is the .class files, with the newly compiled versions.
  4. Restart the Web server.

Last Published: 5/5/2016

Article ID: 000007064