Axis2中services.xml的配置有关问题
Axis2中services.xml的配置问题
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
是什么意思呀,了解的朋友帮忙指点一下
------解决方案--------------------
自动生成的services.xml中不是将每个operation列出来了吗?
你将其中的屏蔽掉不就行了?如将名为QueryProcessList的operation片断注掉
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
是什么意思呀,了解的朋友帮忙指点一下
------解决方案--------------------
自动生成的services.xml中不是将每个operation列出来了吗?
你将其中的屏蔽掉不就行了?如将名为QueryProcessList的operation片断注掉
- XML code
<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>
------解决方案--------------------
检查你的stub程序中的
__operation.setName(new javax.xml.namespace.QName(
"http://service",...)
是如何写的,应当和你的
http://localhost:8080/axis2/services/StockQuoteService?wsdl
中写的targetNamespace="http://service",一样就对了。
------解决方案--------------------
删除wsdl里的operation