OK so I have a few operations for my REST Web Service. There is some overlap of entities between the different operations but based on what I'm doing some of the elements/attributes are not relevant.
Eg. When I request rates I need to get back:
<Property id=””>
<Rooms>
<Room>
<Rates>
<Rate></Rate>
</Rates>
</Room>
</Rooms>
</Property>
But when I just want to get a list of rooms back – I only want:
<Property id=””>
<Rooms>
<Room>
</Room>
</Rooms>
</Property>
and my get rooms request only requires as input
<property id=””></property>
But based on the full definition of property - when I generate my sample getroomsRequest xml structure its including everything as per the top sample.
Am I supposed to be declaring different named entities? Or is there a way to use a common entity but somehow exclude stuff when it is not relevant?
Thanks! Not sure what is possible/best practice.