You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by StevenN82 <st...@easypay-group.com> on 2010/02/18 09:23:49 UTC

Setting up the server side

Hello,

I'm having troubles with setting up a webservice succesfully.

I have to develop a rahter complex webservice and client. The client was not
a problem. I generated the classes with WSDL2Java with option -g and -ss.
I dit this because I have 2 wsdl files (thus 2 services) who use the same
xsd schemes and could reuse the same generated classes for both the clients.
This works good.

Now I also have to implement a webservice, again starting from a WSDL, also
using the same xsd schemes.
Since they use the same classes I'm putting the client and the server in the
same project. (Don't know if this is a good approach ?).

Now I get lost.
The client side was pretty straight-forward : Create a class with void main,
instantiate the stub class and call the right function to invoke the right
service.
With the server I don't know where to start. WSDL2Java generated for the
server some extra classes :
SifCareerServiceMessageReceiverInOut.java
SifCareerServiceSkeleton.java

It seems clear that I need to change the Skeleton class en add the right
code, right ?

Then I want to test/deploy this service using Eclipse and the built-in
Tomcat Server v6.0.
I right-click on my project, choose New, then Other and then select Web
Service.
There I select bottom up Java bean Web Service and select the Skeleton
class.
If I want to test it, Tomcat fails to find the WSDL.
Which is kinda logic since it searches for SifCareerServiceSkeleton.wsdl
instead of the existing SifCareerService_v1.wsdl that was used to generate
the classes.

Where did I go wrong or miss something ?

If anyone can give me some more insight on how to set this up correctly, it
would be a great help.

Thanks in advance.

Greetz,
Steven
-- 
View this message in context: http://old.nabble.com/Setting-up-the-server-side-tp27635591p27635591.html
Sent from the Axis - User mailing list archive at Nabble.com.