Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Deploy Web Service Project
Deploy Web Service Project [message #145555] Fri, 28 October 2005 16:14
Eclipse UserFriend
I was running Eclipse M6 and have upgraded to Eclipse 3.1.1. I have
Apache Tomcat 5.0.28, with Axis 1_1 installed as my server. I deployed
my Web Service to my server, started up my server, and then connected to
my server using the Web Service Explorer option. The Web Services
appeared in the menu, I selected a service, sent my parameters but there
was nothing to view. I switched to the Source view and in the SOAP
Response Envelope the following information appeared: faultcode:
soapenv:Server.userException and faultstring:
java.lang.InvocationTargetException.

To deploy the Web Service I did the following steps:
1) Started the Web Service
2) Opened a command session and navigated to the directory where the
deploy.wsdd file existed within my Eclipse project. I had modified this
file to match the name of the service that I wanted to deploy.
3) Executed the "java org.apache.axis.client.AdminClient deploy.wsdd"
command.
4) Within Eclipse I right clicked on the project, selected Export and JAR
File, to create the JAR file for the project.
5) I copied the JAR file to the ...\Tomcat 5.0\webapps\axis\WEB-INF\lib
directory. I did this for all the projects that this project called as
well.
6) I shut down the Tomcat server and restarted it.
7) I went to the Axis view within my server to verify that the Web Service
was deployed, which it was.

To test my Web Service I did the following:
1) Opened up a Web Service Explorer from Eclipse and selected the WSDL
option.
2) I copied the URL for the WSDL that was deployed into the Web Service
Explorer. The WSDL URL that I used was the one that was listed under the
Tomcat manager page, Web service name, WSDL directory.
3) Under the WSDL binding details was a list of all the service methods
that were deployed with this service.
4) I selected the desired service, entered the parameters and selected
"GO".
5) No message was returned and I was told to switch to the source view to
get the SOAP request and response messages.

I don't know what I was missing to get this message or why I'm not getting
the returned response. In other testing I get the returned response so I
figure that it must be related to my deployment.

I get the expected result if I launce the Web Service (Tomcat server) from
Eclipse and not from outside Eclipse. If I launch the server from Eclipse
and do the exact same steps as above the I recieve the returned result as
expected. I believe this is because Eclipse then runs the Web Service
from the local files and not from the server (I could be wrong). This is
another reason why I believe that there is something missing from my
deployment.

I believe that the service was deployed accurately as well, since it
appears under Axis on the server as a deployed service and because when I
connect to it through the Web Service explorere my methods appear.

I would appreciate any insight or help regarding this.

Thanks,
Ben
Previous Topic:can I help?
Next Topic:WTP 0.71 and Maven2
Goto Forum:
  


Current Time: Fri Apr 25 03:02:57 EDT 2025

Powered by FUDForum. Page generated in 0.02812 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top