code sample icon Sample Code

In the main method of the generated Java class, after the comment line:

                               
// Add your code to call the desired methods.
                            

Add the following code:

                               
System.out.println(creditRating.processRating("123456789"));
                            

The main method instantiates a port to the web service proxy, invokes the web service method with a parameter, and then prints out the response value in the log window.

Instead of typing the sample code, you can copy the code in this window and then paste it into the source editor.

Copyright © 1997, 2009, Oracle. All rights reserved.

false ,,,,,,,,,,,,,,,