Improvement of Data Transfer Over Simple Object Access Protocol Soap
Improvement of Data Transfer Over Simple Object Access Protocol Soap
Vol:86 2014-01-01
490
World Academy of Science, Engineering and Technology
Vol:86 2014-01-01
• Entering XML data and at the same time mapping it to a the SOAP body within the SOAP envelope, namespace
SOAP document, then transferring the document as a declarations and encoding style directives for the serialization
SOAP request and returning it as SOAP response. of data. (iii) we bind the document to a protocol such as
A. Algorithm Design and Implementation HTTP. (iv) the sender class reads XML document, parses it
• The client application uses the JAX-WS programming into a DOM tree, wraps it in a SOAP envelope, and sends it to
model to invoke a Web service operation [7]. a URL destination. The destination is a simple HTTP servlet
that takes the contents of the message and dumps it to the
• The message sender component of the Web services
service.
client, runtime processes the request by sending a SOAP
Various mechanisms such as Java Message Service JMS or
request message to the request queue identified by the
JAXM are used for sending a message [7]. We have used JMS
endpoint location URI associated with the invocation.
in this work. The JMS is a portable, standard messaging API
• The message sender component uses the standard HTTP
that enables Java programs to communicate by exchanging
layer provided by the underlying messaging provider to
messages. JMS is also a component of the Java EE
send the request message.
specification [4], [5].
• The SOAP request message is delivered to the request
queue by the messaging provider.
• The message receiving component of the Web services
server runtime uses the HTTP to receive the SOAP
request message.
• The Web services server runtime uses the EJB container
to dispatch the request to the Web service implementation
class.
• After the Web service operation ends, the Web services
server runtime uses the HTTP to send the SOAP response
message to the reply queue.
• The Web services client runtime uses the HTTP to receive
the reply message.
• The client then processes the reply to finish the Fig. 2 Components Work of the Algorithm
invocation, and returns control back to the client
C. Required Software
application, as shown in Fig. 1.
The proposed algorithm is implemented using the software
tools shown in Table I. Many examples will be used as input
of the algorithm. The input to the algorithm is an XML data.
The algorithm shows how to build and deploy Web service
and the client receives the data as XML document as forms
found in a client application transferring it as SOAP message.
491
World Academy of Science, Engineering and Technology
Vol:86 2014-01-01
TABLE I TABLE II
IMPLEMENTATION REQUIRED SOFTWARE FILE SIZE AND RESPONSE TIME
Software Version required Application File Size Operation Response Response
NetBeans IDE Java tools bundle (6.5.1) (byte) time time
Java2EE or application server Without With
GlassFish application server V2.1 or
NetBeans IDE SOAP SOAP
Tomcat server
Calculator 314 Add 10707 ms 10503
Java development Kit (JDK) Version 5 or version 6
WS ms
331 Subtract 10770 ms 10650
IV. EVALUATION OF THE ALGORITHM ms
370 Division 19870 ms 19750
To evaluate the algorithm, we used many examples as input ms
data for operations located in JSP, which are created in 400 Multiplication 19088 ms 19070
ms
advance.
Flower WS 1030 Get Image sec132 121sec
Another evaluation of the algorithm is to compare between 1334 Get Image 221 sec sec212
deploying the application to GlassFish server and deploying it 1668 Get Image sec256 249 sec
to Tomcat server, and to make another comparison between 1993 Get Image sec285 sec276
the results of the proposed algorithm and those of other
approaches. B. Comparing the Proposed Algorithm with another
Approach
A. Evaluation by Using Many Examples
The second part of evaluation shows the results of the
As mentioned in pervious section, the algorithm is willing to proposed algorithm compared with other approach.
accept XML data, dynamically maps it to SOAP document,
International Science Index 86, 2014 waset.org/publications/9997465
492
World Academy of Science, Engineering and Technology
Vol:86 2014-01-01
V. CONCLUSION [4] Carlos M. Gutierrez, Secretary," Guide to Secure Web Services", 2007,
Information Technology Laboratory National Institute of Standards and
SOAP based on web services is designed with a common Technology.
XML-based protocol. The goal is to allow for a machine [5] Phil Adams and Zina Mostafia, "Develop a SOAP Web services
application with WebSphere Application Server V7 and Rational
readable document to be passed over any multiple connection
Application Developer V7.5", 2009, IBM Corporation.
protocols to create a decentralized, distributed system. [6] Christian Platzer, "Trust-based Security in Web Services", 2004,
SOAP is fundamentally a stateless, one-way message Technical University of Vienna.
exchanging paradigm between SOAP nodes, from a SOAP [7] Santa Clara, "The Java EE 5 for Sun Java System Application Server
9.1", 2008, SunMicrosystems, Inc. 4150Network Circle.
sender to a SOAP receiver by combining one-way exchanges [8] Irmen de Jong, "Web Services SOAP and CORBA", 2004, Knowledge
with features provided by the underlying transport protocol Systems Institute.
and/or application specific information. SOAP can be used to [9] Jack Koftikian," Simple Object Access Protocol (SOAP)", 2001,
Technical University Hamburg-Hamburg.
create more complex interactions such as SOAP request and [10] Wei Lu, Kenneth Chiu, Dennis Gannon," Building a Generic SOAP
SOAP response. Framework over Binary XML", 2005, Department of Computer Science,
Web service applications should be able to use a SOAP to State University of New York (SUNY) at Binghamton.
make delivery mechanism improve its reliability, scalability,
and performance. Since a document message is usually a self-
contained XML file, it is better suited for asynchronous
processing and can be placed directly into the queue. SOAP
message is XML documents consisting of envelope, header,
body, and fault. The envelope contains a body, a mandatory,
and an optional header. The header contains information
International Science Index 86, 2014 waset.org/publications/9997465
REFERENCES
[1] Nan-Chao Huang, “Cross Platform Web Service Implementation Using
SOAP", 2003, Knowledge Systems Institute.
[2] Stephanie Bodoff, Debbie Carson, Maydene Fisher, "The Java™ Web
Services Tutorial", 2004, California 94303 U.S.A.
[3] Brian Suda, "SOAP Web Services", 2002, School of Informatics
University of Edinburgh.
493