|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
http://www.xmethods.net/sd/2001/TemperatureService.wsdl
The build.xml file calls the clientgen Ant task,
specifying the WSDL of the Web service with the wsdl attribute.
The Ant task creates a directory called websvc which contains the
client Stub classes used by the Main.java client program to invoke
the Web service.
| Additional Resources for examples.webservices.client.static | |
| build.xml | The Java Ant build script that creates the client Stub classes used to invoke the Temperature Web service on the Xmethods Web site. |
| Main.java | The client application that invokes the Web service. |
The following sections describe how to build and run the example.
Before you run this example, you need:
prompt> ant
prompt> ant run
NOTE: You do not need to start WebLogic Server because the application invokes a Web service from a different vendor rather than one running on WebLogic Server.
Buildfile: build.xml
run:
[java] This example shows how to create a static client application that invoke
s a non-WebLogic Web service.
[java] The webservice used was: http://www.xmethods.net/sd/2001/TemperatureServ
ice.wsdl
[java] The temperature in the 94501 zip code is:
[java] 58.0
BUILD SUCCESSFUL
NOTE: The value of 58.0 is a sample output; because the example
is executing a real Web service on the Xmethods Web site, you will see the true
current temperature in the 94501 zip code.
|
Documentation is available at http://e-docs.bea.com/wls/docs70/ |
|||||