Thank You Rajesh for your reply. Is your work going to be part of ofbiz any time in the future?
On Fri, Jan 17, 2020 at 12:22 AM Rajesh Mallah <[email protected]> wrote: > Hi , > > OFBiz webservices are not exposed by default. We need to export them. > Once exported you can call them using SOAP or XML-RPC > > JSON or REST API is not supported outright. > > I am working on a middleware that talks JSON to clients (Native or Web > Apps) and XML-RPC > with OFBiz . It is not exhaustive but covers the functionality that is > required by the app. > > In a Nutshell you need to work on it. > > regds > mallah. > > > > > > On Fri, Jan 17, 2020 at 12:10 AM Madhi Krishnan < > [email protected]> wrote: > > > Hi Aditya Sharma > > Thank you for your reply.. > > So is there any way that we can expose ofbiz OOTB services and events as > > API. > > Thanks & Regards > > Madhi Krishnan. > > > > > > > > On Thu, Jan 16, 2020 at 5:56 PM Aditya Sharma <[email protected]> > > wrote: > > > > > Hi Madhi Krishnan, > > > > > > You are calling createPartyGeoPoint and the given service require > > > authentication. > > > See > > > > > > > > > https://github.com/apache/ofbiz-framework/blob/cef21ced2165790a31102a1fbdc627ea717d1be9/applications/party/servicedef/services_party.xml#L60 > > > > > > User needs to be logged in to access this service. > > > > > > HTH > > > Thanks and Regards, > > > Aditya Sharma > > > > > > On Thu, Jan 16, 2020 at 5:23 PM Madhi Krishnan < > > > [email protected]> wrote: > > > > > > > Hello, > > > > I'm looking to create a mobile application with react-native as a > > > front-end > > > > tech and i'am looking to expose ofbiz services and events as API. > > > > I got to know that we can get Json response instead of screens to a > > > > request. > > > > So i created a request one below - > > > > > > > > <request-map uri="createPartyGeoPoint"> > > > > <security https="true" auth="false"/> > > > > <event type="service" invoke="createPartyGeoPoint"/> > > > > <response name="success" type="request" value="json"/> > > > > <response name="error" type="request" value="json"/> > > > > </request-map> > > > > > > > > And i tried to hit this point form Postman with basic authentication > > > > (UserName : admin , Password : ofbiz) added to the header and the > > > required > > > > IN parameters. > > > > > > > > But I'm getting an error message saying that " > > > > User authorization is required for this service: > createPartyGeoPoint"; > > > > > > > > Am I missing something? if yes let me know. > > > > Thanks > > > > Madhi Krishnan > > > > > > > > > >
