Java Reference
In-Depth Information
void setOpaque(boolean opaque) methodwith false astheargument.For
example, pnlInput.setOpaque(false); makestheinputpanel(thepanelcon-
taining a label and input textfield) transparent so that the gradient background shows
through.
Listing 11-18 uses SOAPMessage 's void writeTo(OutputStream out)
method to output a request or response message to the standard output stream. You'll
findthisfeaturehelpfulforunderstandingtherelationshipbetweenSAAJAPIcallsand
theSOAPmessagesthatareconstructed,especiallyifyouarehavingdifficultyfollow-
ingthe APIcalls. This feature isalso helpful whenyou'vecreated aSOAP-based web
service with a SEI and SIB and are trying to create a SAAJ-based client.
Compile Listing11-18 ( javac RomanNumerals.java )andrunthisapplication
( java RomanNumerals ). Figure11-10 showstheresultingwindowwithanexample
conversion from 2011 to MMXI.
Figure 11-10. Converting 2011 to its Roman numerals counterpart.
Additionally RomanNumerals outputs the following request and response SOAP
messages:
Soap request:
<SOAP-ENV:Envelope
xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelop/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xm-
Search WWH ::




Custom Search