Java Reference
In-Depth Information
At this point what we need to do is replace the generated 0.0d value for the inches
parameter and execute our web service client. For our example, we will replace that
value with 1.0d , which should convert to exactly 2.54 centimeters. Although not
absolutely necessary, it is good practice to handle any potential exceptions that
might be thrown, therefore it is a good idea to write some code inside the generated
catch block, at least an invocation to printStackTrace() so that we know an
exceptions occurred.
If the web service operation implementation we are invoking throws an
exception, the exception will be nested inside a SoapFaultException .
By examining the stack trace of this exception, we will be able to see the
nested exception, along with the exact line number in the web service
code that threw the exception
 
Search WWH ::




Custom Search