Axis2中services.xml的配置问题

jsf_jsp 2009-11-19 05:05:53
Axis2中,如果我的服务类中有多个public方法,但是我只想发布其中的某几个,那么如果屏蔽掉其他
的那些呢,让那些不出现早我的wsdl文件中
官方文档中
If the service impl class is java then all the public methods in that service will
be exposed and if user wants to override then he has to add operation tag and override that
是什么意思呀,了解的朋友帮忙指点一下
...全文
785 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
chen4059 2010-01-28
  • 打赏
  • 举报
回复
删除wsdl里的operation
bertni 2010-01-20
  • 打赏
  • 举报
回复
检查你的stub程序中的
__operation.setName(new javax.xml.namespace.QName(
"http://service",...)
是如何写的,应当和你的
http://localhost:8080/axis2/services/StockQuoteService?wsdl
中写的targetNamespace="http://service",一样就对了。
kaleon 2009-11-20
  • 打赏
  • 举报
回复
自动生成的services.xml中不是将每个operation列出来了吗?
你将其中的屏蔽掉不就行了?如将名为QueryProcessList的operation片断注掉

<serviceGroup>
<service name="ESBWSAPIService">
<messageReceivers>
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="esbapi.server.ESBWSAPIServiceMessageReceiverInOut"/>
</messageReceivers>
<parameter name="ServiceClass">esbapi.server.ESBWSAPIServiceSkeleton</parameter>
<parameter name="useOriginalwsdl">true</parameter>
<parameter name="modifyUserWSDLPortAddress">true</parameter>
<operation name="GetProcessesInfo" mep="http://www.w3.org/ns/wsdl/in-out" namespace="ESBWSAPIService">
<actionMapping>GetProcessesInfo</actionMapping>
<outputActionMapping>ESBWSAPIService/ESBWSAPIService_PortType/GetProcessesInfoResponse</outputActionMapping>
</operation>
<operation name="QueryProcessList" mep="http://www.w3.org/ns/wsdl/in-out" namespace="ESBWSAPIService">
<actionMapping>QueryProcessList</actionMapping>
<outputActionMapping>ESBWSAPIService/ESBWSAPIService_PortType/QueryProcessListResponse</outputActionMapping>
</operation>
</service>
</serviceGroup>

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧