beginners question

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

beginners question

soumya jyoti guru
Hi all,
       While writing services, I found that I am writing it similarly
as if i am writing a class.So as a beginner i would like to know that
do we need to create any object to make this services work?
        Do this services work similar to class and if they work
similar than how and, if not than how they work?I would be very
helpful if somebody shows me the flow with some simple codes and
explaining the necessary tags.
with regards
Soumya
Reply | Threaded
Open this post in threaded view
|

Re: beginners question

BJ Freeman
look for a service that is java for an example

soumya jyoti guru sent the following on 7/7/2010 12:33 AM:


=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

> Hi all,
>         While writing services, I found that I am writing it similarly
> as if i am writing a class.So as a beginner i would like to know that
> do we need to create any object to make this services work?
>          Do this services work similar to class and if they work
> similar than how and, if not than how they work?I would be very
> helpful if somebody shows me the flow with some simple codes and
> explaining the necessary tags.
> with regards
> Soumya
>
Reply | Threaded
Open this post in threaded view
|

Re: beginners question

rajsaini
There are no instances created for your services as all service methods
are static. LocalDispatcher (or RemoteDispatcher for RMI) is the class
responsible for calling your services using runSync or runAsync methods.
Your services are defined in a xml file and included in
ofbiz-component.xml file of your application. When your component is
loaded, your services are also loaded. You can check the webtool app for
the available services.

Thanks,

Raj

On 07/07/10 13:29, BJ Freeman wrote:

> look for a service that is java for an example
>
> soumya jyoti guru sent the following on 7/7/2010 12:33 AM:
>
>
> =========================
> BJ Freeman <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation
> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>> Hi all,
>>         While writing services, I found that I am writing it similarly
>> as if i am writing a class.So as a beginner i would like to know that
>> do we need to create any object to make this services work?
>>          Do this services work similar to class and if they work
>> similar than how and, if not than how they work?I would be very
>> helpful if somebody shows me the flow with some simple codes and
>> explaining the necessary tags.
>> with regards
>> Soumya
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: beginners question

Ravindra Mandre-2
In reply to this post by soumya jyoti guru
Hi ,
To get the tags follow this
https://cwiki.apache.org/confluence/display/OFBIZ/Mini-Language+Guide#Mini-LanguageGuide-smap


Regards
Ravindra Mandre
Bangalore

On Wed, Jul 7, 2010 at 1:03 PM, soumya jyoti guru <[hidden email]>wrote:

> Hi all,
>       While writing services, I found that I am writing it similarly
> as if i am writing a class.So as a beginner i would like to know that
> do we need to create any object to make this services work?
>        Do this services work similar to class and if they work
> similar than how and, if not than how they work?I would be very
> helpful if somebody shows me the flow with some simple codes and
> explaining the necessary tags.
> with regards
> Soumya
>
Reply | Threaded
Open this post in threaded view
|

Re: beginners question

Patrick-4
In reply to this post by soumya jyoti guru
screen.xml loads form.xml, form.xml targets controller.xml,
controller.xml looks for a service definition in service*.xml,
service.xml invokes a java function

On Wed, Jul 7, 2010 at 2:33 AM, soumya jyoti guru <[hidden email]> wrote:

> Hi all,
>       While writing services, I found that I am writing it similarly
> as if i am writing a class.So as a beginner i would like to know that
> do we need to create any object to make this services work?
>        Do this services work similar to class and if they work
> similar than how and, if not than how they work?I would be very
> helpful if somebody shows me the flow with some simple codes and
> explaining the necessary tags.
> with regards
> Soumya
>