Web Services With JAX-RPC and Apache Axis
Web Services With JAX-RPC and Apache Axis
extensible {Bindings}
• Defines binding for
SOAP1.1, HTTP {Services}
GET/POST and MIME
• WSDL descriptions can
be made available from
an UDDI registry Wednesday, December 3, 2008
Java APIs for Web Services
Node
SOAPFault
SOAPElement
SOAPFaultElement
*
SOAPBody SOAPHeader
*SOAPBodyElement SOAPHeaderElement *
SOAPEnvelope
Wednesday, December 3, 2008
JAX-RPC
Stub
WSDL<->Java Mapping Container
Dispatch
WSDL description
Client Service
JAX-RPC impl. Vendor prod.
<Vendor A> <Vendor C>
Client Service
Vendor prod. J2EE Container
<Vendor B> WSDL description <Vendor D>
•AddFunction: A simple
Java class with method to
add two integers. Notice the
filename extension – it is
.jws ( for Java Web // File: AddFunction.jws
public class AddFunction {
Service). int addInt(int a, int b){
return(a+b);
•Deploy it. Just copy the }
AddFunction.jws file to }
webapps/axis directory.
•Examine its WSDL Note: All sources with instructions
description. Point your to run are available at my web-site:
browser to http://www.pankaj-k.net
http://localhost:8080/axis/AddFunction.jws?wsdl
Wednesday, December 3, 2008
Writing the Client Program