I have a web service class that takes an object as an argument. The object has many fields but not all the field are required by the web service. I am creating the web service using eclipse web service wizard & Axis2. Is there a way to stop those attributes from appearing in the wsdl generated by the eclipse wizard. I tried setting up the beanPorpertyRules in the services.xml as shown below, but that didn’t work either. Any help would be appreciated.
<service name="VerifyService" >
<Description>
Please Type your service description here
</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="ServiceClass" locked="false">xxxxxxxxx</parameter>
<parameter name="beanPropertyRules">
<bean class="xxxxxxxxx" excludeProperties="orderID,ship,bill,items,itemIds,mercTotal,ordTotal,cCode" />
</parameter>
It turns out you have to use a pipe instead of the comma to separate the exclude properties.