Web Services I

| | Comments (0) | TrackBacks (0)

started some web services experience with axis, wsdl4j and wsif.
i decided to do some try and error on this topic after downloading the eclipse WTP project and clicking through the various wizards. generating a service and a serviceclient with axis and wtp was very easy, i just followed this !
this is the simple class i used to create a service.


public class Answer
{

public String getGoodbye()
{
return "So long and thanks for all the fish";
}

}

next step was to get the client working.i used wsdl2java wizard to created the client stubs. Then used the code on a jsp


AnswerProxy proxy = new AnswerProxy();
Answer answer = proxy.getAnswer();
out.println(answer.getGoodbye());

last step was to deploy both on tomcat5 and watch the output in the browser.
very easy so far. but not very dynamically.

Categories

,

0 TrackBacks

Listed below are links to blogs that reference this entry: Web Services I.

TrackBack URL for this entry: http://www.innoq.com/mt4/mt-tb.cgi/2452

Leave a comment

About this Entry

This page contains a single entry by Christian Albrecht published on December 20, 2005 8:35 AM.

Web Services II is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.0