services in practice application.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

services in practice application.

swathi
Hi.
In practice application, Writing CRUD operations for Person entity Step - 2,For creating a new person, a service, createPracticePerson is called. In that service, a simple method , createPracticePerson is invoked from PracticeServices.xml. <service name="createPracticePerson" default-entity-name="Person" engine="simple"          location="component://practice/script/org/hotwax/practice/PracticeServices.xml" invoke="createPracticePerson" auth="true">     <description>Create a Person</description>     <auto-attributes include="pk" mode="OUT" optional="false"/>     <attribute name="salutation" mode="IN" type="String" optional="true"/>     <attribute name="firstName" mode="IN" type="String" optional="false"/>     <attribute name="middleName" mode="IN" type="String" optional="true"/>     <attribute name="lastName" mode="IN" type="String" optional="false"/>     <attribute name="suffix" mode="IN" type="String" optional="true"/></service>   But its not mentioned what has to be in this createPracticePerson simplemethod. Iam not clear about this. Can someone please help me in understanding what has to be done in this invoked simple method inorder to create a new person.
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: services in practice application.

Pranay Pandey-2
Hi Swati,

For you reference I would like to let you know that there is also zip  
attached for the same application.
This is just for reference, creating the application step by step is  
needed for better understanding. I will also improve the details given  
in tutorial for reference as soon as I get a chance.

Thanks

Regards
--
Pranay Pandey
HotWax Media | www.hotwaxmedia.com



On Nov 2, 2009, at 10:00 PM, swathi wrote:

>
> Hi.
> In practice application, Writing CRUD operations for Person entity  
> Step -
> 2,For creating a new person, a service, createPracticePerson is  
> called. In
> that service, a simple method , createPracticePerson is invoked from
> PracticeServices.xml. <service name="createPracticePerson"
> default-entity-name="Person" engine="simple"
> location="component://practice/script/org/hotwax/practice/
> PracticeServices.xml"
> invoke="createPracticePerson" auth="true">     <description>Create a
> Person</description>     <auto-attributes include="pk" mode="OUT"
> optional="false"/>     <attribute name="salutation" mode="IN"  
> type="String"
> optional="true"/>     <attribute name="firstName" mode="IN"  
> type="String"
> optional="false"/>     <attribute name="middleName" mode="IN"  
> type="String"
> optional="true"/>     <attribute name="lastName" mode="IN"  
> type="String"
> optional="false"/>     <attribute name="suffix" mode="IN"  
> type="String"
> optional="true"/></service>   But its not mentioned what has to be  
> in this
> createPracticePerson simplemethod. Iam not clear about this. Can  
> someone
> please help me in understanding what has to be done in this invoked  
> simple
> method inorder to create a new person.
> Thanks.
> --
> View this message in context: http://n4.nabble.com/services-in-practice-application-tp360795p360795.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: services in practice application.

"Петр Богданов"
In reply to this post by swathi


--- Исходное сообщение ---
От кого: swathi <[hidden email]>
Кому: [hidden email]
Дата: Nov 02, 2009  18:30:41
Тема: services in practice application.


 > Hi.
 > In practice application, Writing CRUD operations for Person entity Step -
 > 2,For creating a new person, a service, createPracticePerson is called. In
 > that service, a simple method , createPracticePerson is invoked from
 > PracticeServices.xml. <service name="createPracticePerson"
 > default-entity-name="Person" engine="simple"        
 > location="component://practice/script/org/hotwax/practice/PracticeServices.xml"
 > invoke="createPracticePerson" auth="true">     <description>Create a
 > Person</description>     <auto-attributes include="pk" mode="OUT"
 > optional="false"/>     <attribute name="salutation" mode="IN" type="String"
 > optional="true"/>     <attribute name="firstName" mode="IN" type="String"
 > optional="false"/>     <attribute name="middleName" mode="IN" type="String"
 > optional="true"/>     <attribute name="lastName" mode="IN" type="String"
 > optional="false"/>     <attribute name="suffix" mode="IN" type="String"
 > optional="true"/></service>   But its not mentioned what has to be in this
 > createPracticePerson simplemethod. Iam not clear about this. Can someone
 > please help me in understanding what has to be done in this invoked simple
 > method inorder to create a new person.
 > Thanks.
 > --
 > View this message in context: http://n4.nabble.com/services-in-practice-application-tp360795p360795.html
 > Sent from the OFBiz - User mailing list archive at Nabble.com.
 >
 >




Reply | Threaded
Open this post in threaded view
|

Re[2]: services in practice application.

"Петр Богданов"
In reply to this post by Pranay Pandey-2


--- Исходное сообщение ---
От кого: Pranay Pandey <[hidden email]>
Кому: [hidden email]
Дата: Nov 03, 2009  06:00:10
Тема: Re: services in practice application.

Hi Swati,
 >
 > For you reference I would like to let you know that there is also zip  
 > attached for the same application.
 > This is just for reference, creating the application step by step is  
 > needed for better understanding. I will also improve the details given  
 > in tutorial for reference as soon as I get a chance.
 >
 > Thanks
 >
 > Regards
 > --
 > Pranay Pandey
 > HotWax Media | www.hotwaxmedia.com
 >
 > On Nov 2, 2009, at 10:00 PM, swathi wrote:
 >
 > >
 > > Hi.
 > > In practice application, Writing CRUD operations for Person entity  
 > > Step -
 > > 2,For creating a new person, a service, createPracticePerson is  
 > > called. In
 > > that service, a simple method , createPracticePerson is invoked from
 > > PracticeServices.xml. <service name="createPracticePerson"
 > > default-entity-name="Person" engine="simple"
 > > location="component://practice/script/org/hotwax/practice/
 > > PracticeServices.xml"
 > > invoke="createPracticePerson" auth="true">     <description>Create a
 > > Person</description>     <auto-attributes include="pk" mode="OUT"
 > > optional="false"/>     <attribute name="salutation" mode="IN"  
 > > type="String"
 > > optional="true"/>     <attribute name="firstName" mode="IN"  
 > > type="String"
 > > optional="false"/>     <attribute name="middleName" mode="IN"  
 > > type="String"
 > > optional="true"/>     <attribute name="lastName" mode="IN"  
 > > type="String"
 > > optional="false"/>     <attribute name="suffix" mode="IN"  
 > > type="String"
 > > optional="true"/></service>   But its not mentioned what has to be  
 > > in this
 > > createPracticePerson simplemethod. Iam not clear about this. Can  
 > > someone
 > > please help me in understanding what has to be done in this invoked  
 > > simple
 > > method inorder to create a new person.
 > > Thanks.
 > > --
 > > View this message in context: http://n4.nabble.com/services-in-practice-application-tp360795p360795.html
 > > Sent from the OFBiz - User mailing list archive at Nabble.com.
 >
 >