Axis2发布的WebService中排除不需要公开的public方法
发布时间:2020-12-16 23:14:36 所属栏目:安全 来源:网络整理
导读:Axis2默认把Service类中所有的public方法都发布成web service的operation(就是对外公布的ws接口)? 在services.xml用如下方法可以排除不需要公开的public方法? service name="wsService" scope="application" description test Web Service /description me
Axis2默认把Service类中所有的public方法都发布成web service的operation(就是对外公布的ws接口)?
在services.xml用如下方法可以排除不需要公开的public方法?
<service name="wsService" scope="application"> <description> test Web Service </description> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> <parameter name="ServiceObjectSupplier" locked="false">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter> <parameter name="SpringBeanName" locked="false">testWebServiceBeanName</parameter> <!-- 排除setApplicationContext --> <excludeOperations> <operation>此处填上你要排除的方法名如:setUserService</operation> </excludeOperations> </service> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- VIM CFPasteboardRef CFPasteboardCreate(CFAllocatorRef,
- 斯卡拉主要回报单位.如何设置程序的返回值
- Bootstrap 3 jquery事件,用于活动标签页更改
- 如何在容器中解析docker主机名(/ etc / hosts)
- bootstrap3的img-thunbnail和img-responsive
- bootstrap风格的html5表单验证示例
- 泛型 – 为什么Scala不能在此示例中推断出类型参数?
- scala – Akka(1节点产品/缺点):BalancingDispatcher即将被
- Shell基础知识
- bash – envsubst有逃生角色吗?