Calling worker class method from simple event xml file and calling a service from that worker and returning back to the same simple event to call another service

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

Calling worker class method from simple event xml file and calling a service from that worker and returning back to the same simple event to call another service

Hemanth Kumar Kanamarlapudi
Hi All,

I need a suggestion for the following scenario:

I need to call two services for a particular request. One service is newly written java service which makes a http request to 3rd party server.
and another service is existing service from ofbiz which is called through a simple events xml file.

Now I need to call the first service which requires user ipaddress along with form entered parameters from existing simple events file which calls the second service.
user ip address which can be captured from request.getRemoteAddress field.

So from simple events xml file can I call a worker class method from which I will a service directly after processing required input parameters for that service and return back to the simple events file again to call the second service.

I am trying to co-related my scenario with LoginWorker.java  along with CustomerEvents.xml which calls doBasicLogin.

Also can any one tell me the difference in usage of worker java files, helper java files, event java files and event xml files.


Thanks in advance.

Regards
Hemanth

________________________________
http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

Re: Calling worker class method from simple event xml file and calling a service from that worker and returning back to the same simple event to call another service

BJ Freeman
most of the information you seek about difference is in the documentation.
there is nothing that compares, only tells you how they work.
by understanding the Service engine and minilanq will help the best.
http://ofbiz.apache.org/docs/serviceconfig.html
http://ofbiz.apache.org/docs/minilang.html
as well as the videos on the basic framework
http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams

Hemanth Kumar Kanamarlapudi sent the following on 8/21/2009 12:22 AM:

> Hi All,
>
> I need a suggestion for the following scenario:
>
> I need to call two services for a particular request. One service is newly written java service which makes a http request to 3rd party server.
> and another service is existing service from ofbiz which is called through a simple events xml file.
>
> Now I need to call the first service which requires user ipaddress along with form entered parameters from existing simple events file which calls the second service.
> user ip address which can be captured from request.getRemoteAddress field.
>
> So from simple events xml file can I call a worker class method from which I will a service directly after processing required input parameters for that service and return back to the simple events file again to call the second service.
>
> I am trying to co-related my scenario with LoginWorker.java  along with CustomerEvents.xml which calls doBasicLogin.
>
> Also can any one tell me the difference in usage of worker java files, helper java files, event java files and event xml files.
>
>
> Thanks in advance.
>
> Regards
> Hemanth
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.