Web Services I
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
java , webservices0 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