1 Replies - 1362 Views - Last Post: 14 August 2012 - 10:37 AM

#1 zakhussain299  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 64
  • Joined: 25-February 11

Avoiding certain attributes in an Object from being included in WSDL

Posted 14 August 2012 - 09:35 AM

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>



This post has been edited by zakhussain299: 14 August 2012 - 10:03 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Avoiding certain attributes in an Object from being included in WSDL

#2 zakhussain299  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 64
  • Joined: 25-February 11

Re: Avoiding certain attributes in an Object from being included in WSDL

Posted 14 August 2012 - 10:37 AM

It turns out you have to use a pipe instead of the comma to separate the exclude properties.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1