加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读