Java Reference
In-Depth Information
configuration.Furthermore,thismethodcausestheapplication torunindefinitely.(On
Windowsmachines,presstheCtrlandCkeyssimultaneouslytoterminatetheapplica-
tion.)
Assumingthatthecurrentdirectorycontains TempVerterPublisher.java and
a ca subdirectory(containinga tutortutor subdirectory,containinga tv subdirect-
ory, containing TempVerter.java and TempVerterImpl.java ), execute ja-
vac TempVerterPublisher.java tocompilethissourcefilealongwith Listings
11-2 and 11-3 .
Tip The javac compilertoolprovidesa -d optionthatyoucanusetospecifythe
directorywhereyouwanttoplacegeneratedclassfiles.Thatway,youdon'tmixsource
files with classfiles.
Ifthesourcecodecompilessuccessfully,execute java TempVerterPublisher
torunthisapplication.Youshouldseenomessagesandtheapplicationshouldnotreturn
to the command prompt.
YoucanuseawebbrowsertotestthiswebserviceandaccessitsWSDLdocument.
Startyourfavoritewebbrowserandenter http://localhost:9901/TempVerter initsad-
dressbar. Figure11-6 showstheresultingwebpageintheMozillaFirefoxwebbrowser.
Search WWH ::




Custom Search