Webservice 遇到hibernate的延时加载

当返回对象中包含hibernte延时加载字段的时候出出现大麻烦。
这个时候可以过滤掉改字段。具体配置参考如下:
<service name="AIMail" >
	<Description>
		Email 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="beanPropertyRules">
     	<bean class="com.ai.model.mail.CategoryBean" excludeProperties="mailtemplates|emailsends" /> 
     	<bean class="com.ai.model.mail.EmailBean" excludeProperties="emailAttachments|category" /> 
	</parameter> 
	<parameter name="ServiceClass" locked="false">com.ai.services.webservices.AIMail</parameter>
</service>


注意,当腰过滤掉多个field的时候应该是用“|” 而不是 “,”做间隔,google处理的几篇文章有误。

你可能感兴趣的:(webservice,axis,hibernte)