// Copyright 2003 Nokia Corporation.
//
// THIS SOURCE CODE IS PROVIDED 'AS IS', WITH NO WARRANTIES WHATSOEVER,
// EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS
// FOR ANY PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE
// OR TRADE PRACTICE, RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHERWISE
// ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE AND WITH NO
// OBLIGATION OF NOKIA TO PROVIDE THE LICENSEE WITH ANY MAINTENANCE OR
// SUPPORT. FURTHERMORE, NOKIA MAKES NO WARRANTY THAT EXERCISE OF THE
// RIGHTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY NOT CAUSE INFRINGEMENT
// OF ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED
// BY THIRD PARTIES
//
// Furthermore, information provided in this source code is preliminary,
// and may be changed substantially prior to final release. Nokia Corporation
// retains the right to make changes to this source code at
// any time, without notice. This source code is provided for informational
// purposes only.
//
// Nokia and Nokia Connecting People are registered trademarks of Nokia
// Corporation.
// Java and all Java-based marks are trademarks or registered trademarks of
// Sun Microsystems, Inc.
// Other product and company names mentioned herein may be trademarks or
// trade names of their respective owners.
//
// A non-exclusive, non-transferable, worldwide, limited license is hereby
// granted to the Licensee to download, print, reproduce and modify the
// source code. The licensee has the right to market, sell, distribute and
// make available the source code in original or modified form only when
// incorporated into the programs developed by the Licensee. No other
// license, express or implied, by estoppel or otherwise, to any other
// intellectual property rights is granted herein.
Release Notes - 'Translator' MIDlet (February 2003)
===============================================================
These notes are only intended as a brief guide for building and running
the example. A more detailed description of the design of this MIDlet
example has been provided as a separate design document.
1. Compiling
------------
You can build the example using any appropriate IDE for MIDP Java.
The example uses the kSOAP 1.2 API, which uses kXML 1.2.
(It could be modified to use the kSOAP 2 API, but this was
still a 'Concept Test' version at the time of writing.)
(One way to compile the example is to download the
binary versions of kSOAP 1.2 and kXML 1.2, and to build and package
the MIDlet using those. You may have to check if the binaries
are already pre-verified, and if not you would have to
perform the preverification step for those classes.)
The other way is to compile, preverify and package the MIDlet
by adding the kSOAP 1.2 and kXML 1.2 source code to the project's
'src' subdirectory. You can download the source code for
kSOAP v1.2.1 and kXML v1.2.1 from ksoap.enhydra.org (ksoap-source.zip)
and kxml.enhydra.org (kxml-source.zip).
Note: You don't need to unzip the J2SE source code,
MIDP transport (class HttpTransport), or servlet source code from
the ksoap-source.zip. You don't need to unzip the org.kxml.wap or
org.kxml.kdom from the kxml-source.zip. These aren't used in the example.
Then you compile, preverify and package the MIDlet as you normally
do using your IDE.
A build.xml file is also included to build the MIDlet using ant
It uses the MIDP tasks included in the Antenna project. It can be found
at http://antenna.sourceforge.net. Copy the antenna-bin.jar file to
the ANT_HOME/lib directory
It also uses the proguard obfuscator ant task. It can be downaloded from
http://proguard.sourceforge.net. Copy the proguard.jar file to the
ANT_HOME/lib directory
If necessary to customize some properties build.properties can be used
2. Packaging
------------
You may want to obfuscate the MIDlet to reduce the size of the JAR file.
The ant build file automatically obfuscates the MIDlet using proguard
3. Other
---------
Since the SOAP messages and XML used are relatively simple in this
example, you could modify the example to use just a simple
XML parser such as kXML 2 (even without using a SOAP support library).
That would help to reduce the MIDlet's JAR file size.
没有合适的资源?快使用搜索试试~ 我知道了~
使用客户端访问webservice源码
共16个文件
java:6个
png:3个
txt:2个
4星 · 超过85%的资源 需积分: 9 8 下载量 183 浏览量
2009-01-09
10:17:54
上传
评论
收藏 502KB ZIP 举报
温馨提示
使用客户端访问webservice源码 还是文档
资源推荐
资源详情
资源评论
收起资源包目录
webservice源码(Java).zip (16个子文件)
MIDP_1_0_Introduction_to_Clients_for_Web_Services_v1_0
src
ErrorScreen.java 3KB
HttpPosterListener.java 2KB
SettingsScreen.java 7KB
TranslatorScreen.java 16KB
TranslatorMIDlet.java 5KB
HttpPoster.java 8KB
README.txt 4KB
res
active0.png 276B
logo.png 252B
active1.png 294B
doc
MIDP_1_0_Introduction_to_Clients_for_Web_Services_v1_0_en.pdf 698KB
build.xml 6KB
build.properties 2KB
Translator.jad 304B
jaxrpc.zip 43KB
LICENSE.TXT 1KB
共 16 条
- 1
资源评论
- loveluckily2013-05-26是通过web client 访问web service
zjmhappy
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功