[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Top Down Web Service -Final Step


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/AccountEventHandlerSoap"/>
</wsdl:port>
</wsdl:service>


(http://localhost:8080/MyService/services/AccountEventHandlerSoap 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