Greetings Users and Experts,
I am trying to create RESTful service integrated with Ofbiz. My Ofbiz RESTful service would check if client exists in PartyAndUserLogin table. Defining business logic of what to do if-exists or if-not-exists will come after I get this basic REST function working. Suggestions for training material or a model of similar behaviors existing already in Ofbiz would be greatly appreciated. Some details; I have done the beginner development tutorial, and also have integrated the example of REST service; https://cwiki.apache.org/confluence/display/OFBIZ/Export+service+using+REST This simple 'ping' application works ok, but the implementation lacks features that my project needs. I look at how services are invoked within my Ofbiz, almost all my services are using Minilang. But those services are invoked by controller.xml when the client request to a particular uri is matched. And since the example RESTful service has *no* entries in controller.xml containing "invoke=", I am unsure how to ask the RESTful service to invoke a Minilang service. In the REST example code, there is a java class that responds to client request, it is not Minilang. I am not <yet> skilled enough with java to extend that example java class to perform username lookup and password checking.. I have also looked at PartyServices.java but it is not clear if that is the right model for my needs.. Not sure if Minilang service is a good approach.. And not sure where to look next for examples.. Any suggestions are most welcome. Thanks in advance. Kind regards, alex |
"In the REST example code, there is a java class that responds to client request, it is not Minilang. " If you look at how the ping service is defined, it will invoke a java method. But you can also point the service to invoke a minilang. |
Free forum by Nabble | Edit this page |