Preparing for the production development, I started studying web service tutorial. Usually, Java tutorial from Sun is pretty good, but J2EE was not so from my past experience. I wonder how this tutorial is. I started building hello web service and got an issue on building hello web service client code. It shows the code, and somehow, HelloService class is used. I did not know from which this class came. I was using NetBean IDE and happened to find there is a wizard called “web service client…” where I specifies the URL to the wsdl of the hello web service. When I finished this wizard, all of sudden, HelloService classes with other necessary classes were generated. Now, I got it and looked into the tutorial in detail. I found that it said “The sub is created at development time by the wsimport tool, which generates JAX-WS portable artifacts based on a WSDL file.” Now, I understood I ran the wsimport tool on the Netbean. To understand the meaning of this, I think it’s beyond the tutorial level.
次の本物の開発に備えて、ウェブサービスのチュートリアルを勉強し始める。SunからのJavaのチュートリアルは、いつもいいが、J2EEの方はあまり良い経験はない。今回はどうか?ハローサービスで、クライアントのコードで問題がある。HelloServiceと言うクラスが出てきたがどこからこれは来たのか?NetBean IDEに“Web Service Client”というビザ-ドを見つける。そのビザードで、WSDLのURLを与えると、HelloServiceのクラスが作られたのを発見。チュートリアルをよくよく見ると、“The sub is created at development time by the wsimport tool, which generates JAX-WS portable artifacts based on a WSDL file.”と書いてある。これで何をしたか分かった。でも、この説明でチュートリアルのレベルだろうか?
