axis2WSDL显示方法
来源:互联网 发布:小李子淘宝 编辑:程序博客网 时间:2024/06/06 13:17
我们将aixs2的service部署在tomcat上时,如果想让其通过http url方式在web browser上显示wsdl
则有两种方式
1 axis自动生成wsdl
2 自己实现已经生成wsdl,将其放在指定位置
method1:
modify the MYSERIVCE_HOME/META-INF/servicex.xml by adding the following child node to every <operation> node
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
sample:
<operation name="sayHappy"></operatoin>
------>
<operation name="sayHappy">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
method2:
1 generate the wsdl file that we want to be shown, such as "xx.wsdl"
and put the wsld file to the paht MYSERIVCE_HOME/META-INF/xx.wsdl
2 modify service.xml by adding serviceGroup parent node to the service node
sample:
<service name="MyHappyService" >
<description>
Please Type your service description here
</description>
<parameter name="ServiceClass" locked="false">samples.Happy</parameter>
<operation name="sayHappy"></operation>
</service>
---------->
<serviceGroup>
<service name="MyHappyService" >
<description>
Please Type your service description here
</description>
<parameter name="ServiceClass" locked="false">samples.Happy</parameter>
<operation name="sayHappy"></operation>
</service>
</serviceGroup>
3 make sure that the name of the service in services.xml (/serviceGroup/service/@name)
is the same as in the custom wsdl's service name (/wsdl:definitions/wsdl:service/@name).
directory structure:
│
└─happy_service.aar
├─client
│ Samples_HappyCallbackHandler.class
│ Samples_HappyStub$1.class
│ Samples_HappyStub$ExtensionMapper.class
│ Samples_HappyStub$SayHappy$1.class
│ Samples_HappyStub$SayHappy$Factory.class
│ Samples_HappyStub$SayHappy.class
│ Samples_HappyStub$SayHappyResponse$1.class
│ Samples_HappyStub$SayHappyResponse$Factory.class
│ Samples_HappyStub$SayHappyResponse.class
│ Samples_HappyStub.class
│
├─lib
├─META-INF
│ HappyServices.wsdl
│ MANIFEST.MF
│ services.xml
│
└─samples
Happy.class
Hello.class
则有两种方式
1 axis自动生成wsdl
2 自己实现已经生成wsdl,将其放在指定位置
method1:
modify the MYSERIVCE_HOME/META-INF/servicex.xml by adding the following child node to every <operation> node
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
sample:
<operation name="sayHappy"></operatoin>
------>
<operation name="sayHappy">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
method2:
1 generate the wsdl file that we want to be shown, such as "xx.wsdl"
and put the wsld file to the paht MYSERIVCE_HOME/META-INF/xx.wsdl
2 modify service.xml by adding serviceGroup parent node to the service node
sample:
<service name="MyHappyService" >
<description>
Please Type your service description here
</description>
<parameter name="ServiceClass" locked="false">samples.Happy</parameter>
<operation name="sayHappy"></operation>
</service>
---------->
<serviceGroup>
<service name="MyHappyService" >
<description>
Please Type your service description here
</description>
<parameter name="ServiceClass" locked="false">samples.Happy</parameter>
<operation name="sayHappy"></operation>
</service>
</serviceGroup>
3 make sure that the name of the service in services.xml (/serviceGroup/service/@name)
is the same as in the custom wsdl's service name (/wsdl:definitions/wsdl:service/@name).
directory structure:
│
└─happy_service.aar
├─client
│ Samples_HappyCallbackHandler.class
│ Samples_HappyStub$1.class
│ Samples_HappyStub$ExtensionMapper.class
│ Samples_HappyStub$SayHappy$1.class
│ Samples_HappyStub$SayHappy$Factory.class
│ Samples_HappyStub$SayHappy.class
│ Samples_HappyStub$SayHappyResponse$1.class
│ Samples_HappyStub$SayHappyResponse$Factory.class
│ Samples_HappyStub$SayHappyResponse.class
│ Samples_HappyStub.class
│
├─lib
├─META-INF
│ HappyServices.wsdl
│ MANIFEST.MF
│ services.xml
│
└─samples
Happy.class
Hello.class
- axis2WSDL显示方法
- DateTime的显示方法
- jsp数据显示方法
- Flex 全屏显示方法
- 饼图中显示百分比方法
- 显示图片方法
- Qt显示汉字方法
- getYear()方法显示问题
- Flex 全屏显示方法
- QT中文字体显示方法
- 全屏显示的方法
- 快速显示快捷键方法
- 分页显示方法
- ucGUI 图片显示方法
- android全屏显示方法
- ecmall 挂件显示方法
- Jsp显示数据方法
- ucGUI 图片显示方法
- 内容分页简单实现代码及祥解(C#)
- 关键字
- 你真的了解Ioc与AOP吗?
- 我今年收到最特别的新年礼物!
- Gridview 日期格式
- axis2WSDL显示方法
- 音乐
- asix2eclipse插件生成文件service.xml问题及解决办法.txt
- 2007年四件事
- c#文件操作的简单实例
- 原来Linux也可以运行Windows程序
- 宽带掉线股民亏钱,怒骂电信客服8分钟
- 过年了,不想上网
- FormatMessage简单说明