| | english | español | français |
  Home|Resources|BCH Interoperability Services 3.0|Generating BCH Web Service Stub using WSDL2Java   Printer-friendly version

Generating BCH Web Service Stub using WSDL2Java

Environment: Java (J2SE 6 Update 1, Apache Axis 1.4)

Steps

You'll find the Axis WSDL-to-Java tool in "org.apache.axis.wsdl.WSDL2Java". The basic invocation form looks like this:

java org.apache.axis.wsdl.WSDL2Java (WSDL-file-URL)

To generate the BCH Web Service Stub, execute the following:

java org.apache.axis.wsdl.WSDL2Java http://bch.biodiv.org/service/3.0/service.asmx?WSDL

The generated files will reside in the directory "org". They are put here because that is the target namespace from the WSDL and namespaces map to Java packages. The files are:

org/biodiv/bch/service/_3_0/BCH_x0020_Web_x0020_Service_x0020_30.java
org/biodiv/bch/service/_3_0/BCH_x0020_Web_x0020_Service_x0020_30Locator.java
org/biodiv/bch/service/_3_0/BCH_x0020_Web_x0020_Service_x0020_30Soap.java
org/biodiv/bch/service/_3_0/BCH_x0020_Web_x0020_Service_x0020_30SoapStub.java

Download

Download pre-generated stub files bch-webservice30-java-axis14.zip (8kb)

References

   
   
Update on 2007-05-17
United Nations Environment Programme United Nations