Hello Ranchers,
I've read about major webservice concepts and protocols (
SOAP, WSDL) and i' ve build also some first webservices in eclipse with Axis 1 and 2. I 've had installed a
Tomcat Application Server and to run webservices I've installed Apache Axis 2.
Eclipse supports the top-down and the botton-up processes to create webservices; there exists several wizard. If I start from a POJO and want to express this class as an webservice, then throught the specific wizard my webservice is created and deployed on Tomcat.
I've locked in my workspace to find the generated wsdl-file, but this file exists only on the server, and I've not found any local copy. Is this "works as designed"?
After the automatic creation of the specific webservice, my POJO looks still the same, there a no additional annotations. I've only found new files under the WEB-INF\services folder. Is this Axis specific, or exists there an specification ?
While searching for webservice-examples I've found also this snippet
I read that this snippet is JAX-WS, is this correct? How can I recognize it? All the examples which I used before were all simple POJO's or classes which I've created from an existing WSDL? Were they so JAX-RPC? This point is really unclear for me.
When I use an WSDL-File to create the specific
Java Classes, then there are a lot of classes generated, like xyzCallbackHandler, xyzMessageRecieverInOut, xyzSkeleton, xyzSkeletonInterface, xyzStub? I don't 've read anything about them, and I'm asking myself "Does I really need them - I hope not ".
For the above snippet (MyWebService.java) I've found a another java-class which should be able to publish this Webserice:
The code which is commented is just another way to publish the service, both approaches don't work, or I'm not able to configure them correctly for my environment. If I execute the above code then I always get an (no 10) BindException, and no webserice is published on my server.
Does someone has an idea to solve this problem? If this would work, then I think that I don't need to deploy another EAR-file for this specific webservice. Is this assumption correct?
Looking for every answer and every comment.