Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

February/2020
SunMonTueWedThuFriSat
      1
2345678
9101112131415
16171819202122
232425262728 29
       

[ Archives News
for 'Java Technology' ]

home > news > java technology > new java tech article: web service simulation using servlets

New Java Tech Article: Web Service Simulation Using Servlets

We've just published a java.net new article, in our Java Tech series: Web Service Simulation Using Servlets, by Adhir Mehta. In this article, Adhir demonstrates the concept of using servlets during the project development stage to simulate the responses that a live web service would provide. Adhir explains: Web service simulation is a growing need for every web service based assignment. Many of the assignments do not have the ready-to-use web service available during development stage, so the developers try to write their own mock implementation. Typically, the developers will write a simple web service that returns a properly formatted result, deploy it to a web server, and use the simple deployed service as part of their development test bed. However, it's time consuming to do this, especially if you need to simulate lots of different web services. Adhir presents an alternative to this approach: Let's go into the basics of web services and soap envelopes. The intended message resides in the soap body and is based on the message/content of the body; the response from the file system is picked up and can be returned to the caller. This task simply can be achieved with servlets using following steps. Extract the soap envelop from input stream. Retrieve the first node of soap body. Apply the algorithm to generate the response file name using input message. (I'll discuss one of the algorithm in foll...


Date: February, 16 2010
Url: http://www.java.net/blog/editor/archive/2010/02/16/new-article-web-service-simulation-using-servlets


Others News

©2002-2019Java-Virtual-Machine.net es | free web editor | website generator | bootstrap popup window | bootstrap modal popup