You can use it in different way: At the service level use default-entity-name="TicketBookingDetails" if you want to use other entity then use <auto-attributes mode="IN" include="pk" optional="true" entity-name="PaymentDetails"/>
The auto-attributes override the default-entity-name setting otherwise it takes the default-entity. Another way to do this, just include the additional parameters as in and add their implementation - <attribute name="expYear" type="String" mode="IN" optional="true"/> There is no other-entity-name attribute available at service definition level tags. HTH! -- Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Fri, Jun 29, 2012 at 11:42 AM, madhu <[email protected]>wrote: > hi, > i want to insert data in 2 entities in one service call.for that i wrote > the > following service > > <service name="updateStatus" engine="java" > default-entity-name="TicketBookingDetails" > other-entity-name="PaymentDetails" > location="org.ofbiz.eticket.ETicket_booking" > invoke="updateStatus_TicketBooking" auth="false"> > <description>Update TicketBookingDetails</description> > <auto-attributes mode="IN" include="pk" optional="true"/> > <auto-attributes mode="IN" include="nonpk" optional="true"/> > <attribute name="expMonth" type="String" > mode="IN" optional="true"/> > <attribute name="expYear" type="String" mode="IN" > optional="true"/> > </service> > > can i give like this > default-entity-name="TicketBookingDetails" > other-entity-name="PaymentDetails" > and > > in updateStatus_TicketBooking method i am calling another method. > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Service-calling-a-service-tp145137p4634193.html > Sent from the OFBiz - User mailing list archive at Nabble.com. >
