Java Reference
In-Depth Information
The getUnitConversionPort() method of UnitConversion_Service returns an
instance of the UnitConversion class that is generated from the WSDL and is similar to
the identically named class we wrote in our web service project. The method generated
when we drag the web service operation to our code invokes this method, then invokes
the inchesToCentimeters() method on the UnitConversion instance that is returned.
All we need to do is invoke the generated method from the main method in our code.
After making this simple modification, our code now looks like this:
At this point, we are ready to execute our web services client code; we should see
the following output in the console:
Search WWH ::

Custom Search