没有合适的资源?快使用搜索试试~ 我知道了~
webservice for idea
5星 · 超过95%的资源 需积分: 31 27 下载量 83 浏览量
2010-03-19
10:50:16
上传
评论
收藏 2.21MB PDF 举报
温馨提示
试读
22页
webservice for idea,你可以用idea来很方便的开发webservice了
资源推荐
资源详情
资源评论
1
Creating Web Services Applications with IntelliJ IDEA
Creating Web Services Applications
with IntelliJ IDEA
In this tutorial you will:
Create IntelliJ IDEA projects for both client and server-side Web Service parts 1.
Learn how to tie them together 2.
Use various frameworks and technologies: Apache Axis, JAX-WS, RESTful 3.
Web Services
Experience advanced IntelliJ IDEA coding assistance and code generation features4.
Prerequisites
To develop Web Services applications with IntelliJ IDEA, download the following software:
IntelliJ IDEA 8.1 or later release build. You can get it from 1.
http://www.jetbrains.com/idea
A compatible application server, for example, Apache Tomcat, available at 2.
http://tomcat.apache.org/
You may also want to check http://www.jetbrains.com/idea/training/demos.html and http://www.
jetbrains.com/idea/documentation/documentation.html to get better insight into IntelliJ IDEA
and its features.
Creating Web Service: Apache Axis
Prior to proceeding with the tutorial steps, make sure that an application server is installed on
your machine. After that, launch IntelliJ IDEA and begin with creating a project from scratch.
Run 1. IntelliJ IDEA.
2
Creating Web Services Applications with IntelliJ IDEA
On the 2. File menu, click New Project. The New Project wizard appears. Click Next.
Specify the project name, for example, 3. sampleServer.
3
Creating Web Services Applications with IntelliJ IDEA
Leave the option to create source directory selected and click 4. Next.
From the list of technologies, select 5. Web Application, then WebServices, and select
Apache Axis from the list. Click Finish.
4
Creating Web Services Applications with IntelliJ IDEA
Now, IntelliJ IDEA generates the project with some sample code — HelloWorld class. This is
how the project structure should look.
Sample HelloWorld class contains the generated code that concatenates a given string with
Hello, world, from and then sends it back to the client along with printing to the server console.
We only need to mark this class as one implementing a Web service by adding the
@WebService annotation. IntelliJ IDEA suggests a quick-fix for it. Click the light bulb,
or press Alt + Enter to automatically add annotation and corresponding import.
Another quick-fix we need to apply is adding @WebMethod annotation. We’ll
need the sayHelloWorldFrom method annotated, as we’re going to expose it as
a web service operation.
When done, press Ctrl+Shift+F9 to compile the HelloWorld class.
5
Creating Web Services Applications with IntelliJ IDEA
We’ve only few things left to do: expose the class as Web Service and generate the appropriate
WSDL descriptor file.
Select the class name in the editor1.
Select 2. Tools | Web Services | Expose Class as Web Service menu.
Click 3. OK. IntelliJ IDEA automatically adds service description
to the server-config.wsdd file:
<service name=”HelloWorld” provider=”java:RPC” style=”document”
use=”literal”>
<parameter name=”className” value=”example.HelloWorld”/>
<parameter name=”allowedMethods” value=”*”/>
<parameter name=”scope” value=”Application”/>
<namespace>http://example</namespace>
</service>
剩余21页未读,继续阅读
资源评论
- shalala882012-12-24好东西,关于idea的不多
- 我心豪情万丈2013-09-23没有什么实际的意义
henan88
- 粉丝: 3
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- vscode配置c/c 环境教程
- vscode配置c/c 环境教程
- 基于matlab实现电磁优化计算功能,进行线型规划优化电磁设计.rar
- 基于matlab实现带精英策略的非支配排序遗传算法matlab 源码.rar
- 基于matlab实现差分进化算法,最新的用于替代遗传算法,是以后的主要发展方法.rar
- VSCode配置c/c++环境教程.md
- 基于matlab实现标准合作型协同进化遗传算法matlab源程序
- 七下人教.zip
- 基于matlab实现本份代码能对图像进行gabor滤波处理,结合指纹方向图以及指纹沟壑频率特性,对指纹图像进行增强.rar
- 基于matlab实现RBM神经网络实现了手写数字体识别的GUI程序.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功