See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
News »Browse Articles » Web Services APIs for J2ME
0
Vote Vote

Web Services APIs for J2ME

Views 0 Views    Comments 0 Comments    Share Share    Posted 06-10-2009  
Introduction
The Web Services APIs (WSA) for Java 2 Platform, Micro Edition (J2ME), as defined by the Java Community Process Java Specification Request (JSR) 172 (see Resources), defines two independent optional packages for remote service invocation and XML parsing. These Java APIs are targeted at both the Connected Device Configuration (CDC) and the Connected Limited Device Configuration (CLDC 1.0 and CLDC 1.1)-based profiles. Because JSR 172 provides support for remote service invocation (see Web Services API for J2ME, Part 1) and XML parsing at the device level, you don`t have to embed these functions into each application. This article introduces the Java API for XML Processing (JAXP) optional package.
Back to top
The JAXP for J2ME
The JSR 172 XML parsing API for J2ME is based on a subset of Java 2 Platform, Standard Edition (J2SE) JAXP 1.2 API and Simple API for XML Parsing (SAX) 2.0 interfaces. JAXP for J2ME is based on a subset of JAXP 1.2 and SAX 2.0 because of the memory constraints found on typical J2ME platforms. JAXP for J2ME consists of the following Java packages:
javax.xml.parsers: contains the SAX parser, exception, and error classes
Interfaces: None
Classes: SAXParserFactory (factory of SAX parsers), SAXParser (represents a SAX parser)
Exceptions: ParserConfigurationException (parser configuration)
Errors: FactoryConfigurationError (error related to parser factories such as parser not found)
org.xml.sax: the SAX 2.0 subset API
Interfaces: Attributes (an element`s attributes), Locator (an event`s document location)
Classes: InputSource (represents an XML input source)
Exceptions: SAXException (general/base SAX exception), SAXNotRecognizedException (feature not recognized), SAXNotSupportedException (feature recognized but not supported), SAXParseException (SAX parsing exception)
Errors: None
org.xml.sax.helpers: defines the base class for event processing
Interfaces: None
Classes: DefaultHandler (base event processing handler with default implementation)
Exceptions: None
Errors: None
JAXP for J2ME provides all the classes, interfaces, and exceptions needed to parse XML documents. The J2ME JAXP Javadoc or specification (see Resources) provides more information on these classes and interfaces.

Source:
http://www.java2s.com/Article/Java/SOA-Web-Services/Web_Services_APIs_for_J2ME_P
0
Vote  Vote
Enter your comment:
No Comments For This News

Search News

What's the News?

Post a link to something interesting from another site, or submit your own original writing for the Java community to read.

Most Popular News

Most Recent User Submitted News