Java Reference
In-Depth Information
4. Instantiate
SOAPLoggingHandler
and add this instance to the
java.util.List
instance of
Handler
instances.
5. Pass this list of handlers to
Binding
's
void
setHandler-
Chain(List<Handler> chain)
method.
running, run
TempVerterClient
. You should observe the following output:
Outbound message:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/en-
velope/"><S:Body><ns2:c2f
xm-
lns:ns2="http://tv.tutortutor.ca/"><ar-
g0>37.0</arg0></ns2:c2f></S:Body></S:E
nvelope>
Inbound message:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/en-
velope/"><S:Header/><S:Body><ns2:c2fResponse
xm-
lns:ns2="http://tv.tutortutor.ca/"><re-
turn>98.6</return></ns2:c2fResponse></S:Body><
/S:Envelope>
98.6
Outbound message:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/en-
velope/"><S:Body><ns2:f2c
xm-
lns:ns2="http://tv.tutortutor.ca/"><ar-
g0>212.0</arg0></ns2:f2c></S:Body></S:Envelope>
Inbound message:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/en-
velope/"><S:Header/><S:Body><ns2:f2cResponse
xm-
lns:ns2="http://tv.tutortutor.ca/"><re-
turn>100.0</return></ns2:f2cResponse></S:Body> </S:
Envelope>
100.0