Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Top Down Web Service -Final Step(Top down web service, make methods publicly available...)
Top Down Web Service -Final Step [message #482534] Wed, 26 August 2009 23:00 Go to next message
Tori  is currently offline Tori Friend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I have developed my simple web service as described in this WSDL (provided by vendor) . I have published it here for ref: http://docs.google.com/View?id=dc8qf54c_297fsj74wgw.
To avail of their service I need to implement and deploy this web service.

I have developed using the Eclipse Wiki top down tutorial as an example and I just replaced the sample WSDL in the tutorial with the one attached to this post. The test client in Tutorial works fine with new WSDL etc. The tutorial is simple and easy to follow and the service appears correctly in Java Resources etc. , ref: http://wiki.eclipse.org/Creating_a_Top-Down_Java_Web_Service _Skeleton_from_a_WSDL_Document

My question is how do I deploy this correctly to a Tomcat server and have my methods publicly accessible. If I export the project as a .war, deploy this on a server (deploy .war with java project name as .war name) and I then click on the service from Tomcat manager I get a 404 error. The class/service I particularly want to expose is AccountEventHandlerSoapImpl. What is the correct endpoint URL for this service and correct way to publicly expose this to WWW?

Thanks,
Tori
Re: Top Down Web Service -Final Step [message #482601 is a reply to message #482534] Thu, 27 August 2009 09:02 Go to previous messageGo to next message
Tori  is currently offline Tori Friend
Messages: 18
Registered: July 2009
Junior Member
Hi,

Apologies, the 'full stop' at the end of the link to the WSDL was preventing the link form working... here it is:

http://docs.google.com/View?id=dc8qf54c_297fsj74wgw

Tori
Re: Top Down Web Service -Final Step [message #482759 is a reply to message #482601] Thu, 27 August 2009 19:55 Go to previous messageGo to next message
Tori  is currently offline Tori Friend
Messages: 18
Registered: July 2009
Junior Member
Hi Guys,

anyone got any advice on this please...?

Thanks v much...
Re: Top Down Web Service -Final Step [message #483522 is a reply to message #482534] Tue, 01 September 2009 20:33 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
Hi Tori,

If you are using Apache axis to create your web service, then I think a
new WSDL file would be generated in the WebContent/wsdl folder that has
the correct endpoint address to send SOAP messages to.

The WSDL file should have a service element that looks like this:
<wsdl:service name="AccountEventHandler">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Interface
definition for a client hosted web service to receive notification of
account events. Click here for a &lt;a
href="https://www.esendex.com/secure/registration/evaluation.aspx"
title="SMS Service Trial"&gt;free trial&lt;/a&gt;.</documentation>
<wsdl:port binding="tns:AccountEventHandlerSoap"
name="AccountEventHandlerSoap">
<soap:address
location=" http://localhost:8080/MyService/services/AccountEventHandler Soap"/>
</wsdl:port>
</wsdl:service>

( http://localhost:8080/MyService/services/AccountEventHandler Soap is my
endpoint URL).


You can use the web services explorer to test this WSDL and send
messages to your endpoint.

Tori wrote:
> Hi,
>
> I have developed my simple web service as described in this WSDL
> (provided by vendor) . I have published it here for ref:
> http://docs.google.com/View?id=dc8qf54c_297fsj74wgw. To avail of their
> service I need to implement and deploy this web service.
>
> I have developed using the Eclipse Wiki top down tutorial as an example
> and I just replaced the sample WSDL in the tutorial with the one
> attached to this post. The test client in Tutorial works fine with new
> WSDL etc. The tutorial is simple and easy to follow and the service
> appears correctly in Java Resources etc. , ref:
> http://wiki.eclipse.org/Creating_a_Top-Down_Java_Web_Service _Skeleton_from_a_WSDL_Document
>
>
> My question is how do I deploy this correctly to a Tomcat server and
> have my methods publicly accessible. If I export the project as a .war,
> deploy this on a server (deploy .war with java project name as .war
> name) and I then click on the service from Tomcat manager I get a 404
> error. The class/service I particularly want to expose is
> AccountEventHandlerSoapImpl. What is the correct endpoint URL for this
> service and correct way to publicly expose this to WWW?
>
> Thanks,
> Tori
Re: Top Down Web Service -Final Step [message #483527 is a reply to message #483522] Tue, 01 September 2009 21:31 Go to previous message
Tori  is currently offline Tori Friend
Messages: 18
Registered: July 2009
Junior Member
Hi Mark...

Thank you very much for replying.. I made a few beginner mistakes. I didnt fully understand how axis2 worked I had packaged the src, all jars including the axis jars into a .war and deployed.

I didn't realise I need to install Axis2 separately on Tomcat. Once i did this i could deploy it as a .aar file and everything worked.

Thanks again for taking the time to reply...

Previous Topic:Need help with trivial HTML-template PLZ
Next Topic:JSF config file outside WEB-INF?
Goto Forum:
  


Current Time: Tue Apr 23 12:40:29 GMT 2024

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

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

Back to the top