随手一写,记录过程,达人勿怪 ^_^
AXIS2一步一步
package com.yy.ws;
/**
* @author
* @date May 15, 2008 / 3:37:32 PM
*/
public interface MobileBoss {
public ServerResponse charge(ClientRequest req);
}
E:\tmp_doc\ax>java2wsdl
Using AXIS2_HOME: D:\axis2-1.4
Using JAVA_HOME: D:\works\jdk1.5.0_06
Usage: java2wsdl [options] -cn <fully qualified class name>
where [options] include:
-o <output location> output directory
-of <output file name> output file name for the WSDL
-sn <service name> service name
-l <soap address> address of the port for the WSDL
-cp <class path uri> list of classpath entries - (urls)
-tn <target namespace> target namespace for service
-tp <target namespace prefix> target namespace prefix for service
-stn <schema target namespace> target namespace for schema
-stp <schema target namespace prefix> target namespace prefix for schema
-st <binding style> style for the WSDL
-u <binding use> use for the WSDL
-nsg <class name> fully qualified name of a class that implements NamespaceGenerator
-sg <class name> fully qualified name of a class that implements SchemaGenerator
-p2n [<java package>,<namespace] [<java package>,<namespace]...
java package to namespace mapping for argument and return types
-p2n [all, <namespace>] to assign all types to a single namespace
-efd <qualified/unqualified> setting for elementFormDefault (defaults to qualified)
-afd <qualified/unqualified> setting for attributeFormDefault (defaults to qualified)
-xc class1 -xc class2... extra class(es) for which schematype must be generated.
-wv <1.1/2.0> wsdl version - defaults to 1.1 if not specified
-dlb generate schemas conforming to doc/lit/bare style
E:\tmp_doc\ax>java2wsdl -cp . -cn com.yy.ws.MobileBoss -of MobileBoss.wsdl
Using AXIS2_HOME: D:\axis2-1.4
Using JAVA_HOME: D:\works\jdk1.5.0_06
[WARN] Unable to generate EPR for the transport : http
则生成wsdl文件:
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ns="http://ws.yy.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://ws.yy.com">
<wsdl:documentation>mobile</wsdl:documentation>
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.yy.com">
- <xs:element name="charge">
- <xs:complexType>
- <xs:sequence>
<xs:element minOccurs="0" name="charge" nillable="true" type="xs:anyType" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="chargeResponse">
- <xs:complexType>
- <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:anyType" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
- <wsdl:message name="chargeRequest">
<wsdl:part name="parameters" element="ns:charge" />
</wsdl:message>
- <wsdl:message name="chargeResponse">
<wsdl:part name="parameters" element="ns:chargeResponse" />
</wsdl:message>
- <wsdl:portType name="mobilePortType">
- <wsdl:operation name="charge">
<wsdl:input message="ns:chargeRequest" wsaw:Action="urn:charge" />
<wsdl:output message="ns:chargeResponse" wsaw:Action="urn:chargeResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="mobileSoap11Binding" type="ns:mobilePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="charge">
<soap:operation soapAction="urn:charge" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="mobileSoap12Binding" type="ns:mobilePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="charge">
<soap12:operation soapAction="urn:charge" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="mobileHttpBinding" type="ns:mobilePortType">
<http:binding verb="POST" />
- <wsdl:operation name="charge">
<http:operation location="mobile/charge" />
- <wsdl:input>
<mime:content type="text/xml" part="charge" />
</wsdl:input>
- <wsdl:output>
<mime:content type="text/xml" part="charge" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="mobile">
- <wsdl:port name="mobileHttpSoap11Endpoint" binding="ns:mobileSoap11Binding">
<soap:address location="http://192.168.2.187:8090/axix/services/mobile.mobileHttpSoap11Endpoint" />
</wsdl:port>
- <wsdl:port name="mobileHttpSoap12Endpoint" binding="ns:mobileSoap12Binding">
<soap12:address location="http://192.168.2.187:8090/axix/services/mobile.mobileHttpSoap12Endpoint" />
</wsdl:port>
- <wsdl:port name="mobileHttpEndpoint" binding="ns:mobileHttpBinding">
<http:address location="http://192.168.2.187:8090/axix/services/mobile.mobileHttpEndpoint" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
wsdl2java
E:\tmp_doc\ax>wsdl2java -o . -sn MobileBoss com.yy.ws -uri MobileBoss.wsdl
Using AXIS2_HOME: D:\axis2-1.4
Using JAVA_HOME: D:\works\jdk1.5.0_06
Retrieving document at 'MobileBoss.wsdl'.
则生成 build.xml及两个java类(目录自动建立):
com.yy.ws. MobileBossStub.java/MobileBossCallbackHandler.java
分享到:
相关推荐
由作者自身一步步实践写出来了,主要也是为了记录下操作步骤备忘. 全文通俗易懂,图文并茂一步步安装 和 并使用psql 常规命令; 本文是postgreSQL 13.5 windows安装与 Linux 安装 及 常见命令, 由作者自身一步步实践写...
此文档是自己在企业实际操作总结出来,途中遇到不少问题,都是一步步解决并记录出来,包括:操作说明、操作命令、问题处理、注意事项、配置文件说明、软件下载地址从哪里找等,其中teamview模块费了不少时间安装,...
linux ftp 搭建 实战步骤 每一行命令的记录 一步步操作 手把手教会你
本教程是根据个人在UBUNTU虚拟机上安装配置Hadoop2.7.3的实际操作步骤一步步记录下来的,大部分指令操作的目的都加了注释以方便理解。(本教程很详细,如果还是遇到问题可以直接咨询楼主,不会让你的积分百花的)
内含最新win版本和Linux版本,以及含有最详细的安装操作步骤,下载即可跟着步骤一步步进行安装调试,本恩亲测出现的问题和解决方法都记录在里面。
内含最新win版本和Linux版本,以及含有最详细的安装操作步骤,下载即可跟着步骤一步步进行安装调试,本恩亲测出现的问题和解决方法都记录在里面。还附有redis的常用几种数据类型的操作命令归总
自已一步步操作的记录,希望对大家有所帮助!
QC支持的操作系统:Windows、Linux、Solaris 支持群集: 服务器端硬件和数据库要求: Windows: Linux: Solaris: 客户端系统要求: 练习1:安装QC 详见《Mercury Quality Center 9.0 ...
该资料对即将要学Linux的人来说是一本较好的教程,因为该书是结合我自己的学习经历来一步步记录的,但有些基本步骤不懂的话可能会有些困难,因为涉及到手工操作,如果有什么问题可给我留言,我很乐意为大家解决
all-in-one 目前就取个这个名字吧,表示将所有的东西都在...当然你可以说我比较细致,这些no problem,然而如果你的电脑崩了呢,按照记录的教程一步步搭建将会非常麻烦,你可以说我不怕麻烦,但是如果你的电脑拿给别人
操作步骤: 在企业管理器中 --右键你的服务器实例(就是那个有绿色图标的) --编辑SQL Server注册属性 --选择"使用windows身份验证" --选择"使用SQL Server身份验证" --登录名输入:sa,密码输入sa的密码 --确定 ...
Java实现HTTP连接与浏览,Java源码下载,输入html文件地址或网址,显示页面和HTML源文件,一步步的实现过程请下载本实例的Java源码,代码中包括丰富的注释,对学习有帮助。 Java实现的FTP连接与数据浏览程序 1个...
Calendar万年历 1个目标文件 EJB 模拟银行ATM流程及操作源代码 6个目标文件,EJB来模拟银行ATM机的流程及操作:获取系统属性,初始化JNDI,取得Home对象的引用,创建EJB对象,并将当前的计数器初始化,调用每一个...
是否可以简化流程,减少用户操作步骤 (最好形成漏斗模型,规划合理访问路径) 用户习惯分析 平均使用时长 单次使用时长、日使用时长、周使用时长 可以进一步做渠道细分 平均启动次数 日、周、月启动次数 启动天数 周...
是否可以简化流程,减少用户操作步骤 (最好形成漏斗模型,规划合理访问路径) 用户习惯分析 平均使用时长 单次使用时长、日使用时长、周使用时长 可以进一步做渠道细分 平均启动次数 日、周、月启动次数 启动...