Java

本类阅读TOP10

·使用MyEclipse开发Struts框架的Hello World!(录像1)
·hibernate配置笔记
·AOP编程入门--Java篇
·linux下Tomcat 5.0.20 与 Apache 2 安装/集成/配置
·在win2003下整合了整合Tomcat5.5+ apache_2.0.53+ mod_jk_2.0.47.dll
·构建Linux下IDE环境--Eclipse篇
·Jsp 连接 mySQL、Oracle 数据库备忘(Windows平台)
·ASP、JSP、PHP 三种技术比较
·Tomcat5.5.9的安装配置
·AWT GUI 设计笔记(二)

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Sun ONE Application Server 开发者指南(15)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

 

JAX-RPC工具


Sun ONE应用服务器的JAX-RPC实现包括了下面的工具帮助进行JAX-RPC客户端的开发

wscompile工具

Wscompile是一个捆绑在Sun ONE应用服务器中的映射工具,用来生成stubtieserializer、以及其他部件。你还可以使用这个工具根据服务终端定义生成WSDL文档,或者根据WSDL文档生成服务终端定义。

你可以选择只生成客户端的部件,比如stub,或是服务器端的部件,比如tie,或者既生成客户端的也生成服务器端的部件。该工具读取含有必要信息的配置文件来生成部件。

wscompile命令的语法如下:

wscompile [options] config_file_name

wscompile命令选项

The following table lists the options that you can use with the wscompile command. The first column specifies the option that you can use with the command, and the second column describes the option.

下表列出了可以和wscompile命令一起使用的选项。第一列给出了选项,第二列对其进行描述。

wscompile工具选项

  选项

描述

-gen:client

生成客户端部件,例如stub、服务接口、实现类、以及远程接口。

-gen:server

 生成服务器端部件,例如tie、服务器配置文件、WSDL文件、服务定义接口。如果你使用的是wsdeploy工具,千万不要使用该选项。

-gen:both

同时 生成客户端和服务器端部件

gen

 gen:client作用相同

-define

 定义服务

-f:<features>/-features:<features>

激活列出的特性。特性之间用逗号分开。支持的特性包括:

datahandleronly – 总是把附件映射到数据处理者类型

explicitcontext – 打开外部服务映射上下文

infix=<name> - 为生成的serializer指定一个中缀

nodatabindings -为文字编码关闭数据绑定

noencodedtypes -关闭编码类型信息

nomultirefs -关闭多引用支持

novalidation -关闭对导入WSDL文件的校验

searchschema -查找schema中的图表类型

serializeinterfaces -关闭接口类型的直接servialization

-classpath<classpath_string>

 指定输入类文件的路径

cp<classpath_string>

classpath

-d<directory_name>

为所有生成文件设定输出目录

-s<directory>

 指定生成文件的保存路径

-g

 生成调试信息

-httpproxy:<host>:<port>

 指定HTTP代理服务器

-import

 生成接口和值类型

-keep

 编译完成后保留生成的.java文件

-model<file>

Write internal model to the file.

 向文件中写入内部模式

-nd<directory>

.

 指定存放非class生成文件的路径

-O

 优化生成的代码

-verbose

编译器执行后输出消息

-version

打印版本信息

-import, -gen, -define选项中的一个必须和wscompile命令一起使用。调用没有指定选项的wscompile命令会显示出使用信息。




相关文章

相关软件