Professional Documents
Culture Documents
J2ME Web Services: Harsh Maheshwari-09030142071 Tanmay Gupta-09030142066 Ashish Srivastava-09030142062
J2ME Web Services: Harsh Maheshwari-09030142071 Tanmay Gupta-09030142066 Ashish Srivastava-09030142062
J2ME Web Services: Harsh Maheshwari-09030142071 Tanmay Gupta-09030142066 Ashish Srivastava-09030142062
Harsh Maheshwari-09030142071
Tanmay Gupta-09030142066
Ashish Srivastava-09030142062
Web services in J2ME
Web services in the Java 2 Platform, Micro Edition (J2ME) platform,
as defined by Java Specification Request 172 (JSR 172), follow the
same specifications, architecture, and invocation model as with
standard Web services
JSR 172 Web Services APIs (WSA) follow these core Web services specifications:
XML 1.0
<types>
definition of types........
</types>
<message>
definition of a message....
</message>
<portType>
definition of a port.......
</portType>
<binding>
definition of a binding....
</binding>
</definitions>
Structure of WSDL document Contd..
Types– a container for data type definitions using some type
system (such as XSD).
Message– an abstract, typed definition of the data being
communicated.
Operation– an abstract description of an action supported by the
service.
Port Type–an abstract set of operations supported by one or more
endpoints.
Binding– a concrete protocol and data format specification for a
particular port type.
Port– a single endpoint defined as a combination of a binding and a
network address.
Service– a collection of related endpoints.
SOAP
SOAP is for communication Protocol between
applications
SOAP is a format for sending messages
SOAP communicates via Internet
SOAP is platform independent
SOAP is language independent
SOAP is based on XML
SOAP is XML based protocol to let application
exchange information over HTTP.
HTTP + XML = SOAP
Why Soap
Today's applications communicate using Remote Procedure Calls
(RPC) between objects like DCOM and CORBA, but HTTP was not
designed for this. RPC represents a compatibility and security
problem; firewalls and proxy servers will normally block this kind
of traffic.
<soap:Header>
...// Optional Element Consist of Platform Specific Information
..// Protocol Specific information
</soap:Header>
<soap:Body>
...// Message Part
<soap:Fault>
... // Error Message and Resolution
</soap:Fault>
</soap:Body>
</soap:Envelope>
Hello world message in SOAP
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2001/12/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<message xsi:type="xsd:string">Hello World
Message</message>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
J2ME Web Services
(WSA)
This high-level architecture is structured as follows:
The network: This refers to the wireless and wired networks, part
of the Internet, and the communication protocols.
(D)To consume web services, it can use the JAX-RPC subset API
The JSR 172 Runtime and Service
Provider Interface