I am trying to use ofbiz webservices from an external app but some of these servcies require you to be logged in. Is there anyway to bypass this? We want our own login system to be used in place of that of ofbiz. Also is there a way to access the current session of ofbiz so that we can retrieve the cart and other details directly from the app
|
Hi,
put userLogin as parameter to service, example in java: GenericValue userLogin = null; userLogin = (GenericValue) request.getSession().getAttribute("userLogin"); serviceContext.put("userLogin", userLogin); Map serviceReturn = dispatcher.runSync(serviceName, serviceContext); ya jaki wrote / napísal(a): > I am trying to use ofbiz webservices from an external app but some of these > servcies require you to be logged in. Is there anyway to bypass this? We > want our own login system to be used in place of that of ofbiz. > |
Also remember that the login must be also set up in Party Mgr for
security for roles. Ján Valkovic sent the following on 6/23/2008 6:19 AM: > Hi, > put userLogin as parameter to service, example in java: > > GenericValue userLogin = null; > userLogin = (GenericValue) request.getSession().getAttribute("userLogin"); > > serviceContext.put("userLogin", userLogin); > Map serviceReturn = dispatcher.runSync(serviceName, serviceContext); > > ya > > jaki wrote / napísal(a): >> I am trying to use ofbiz webservices from an external app but some of these >> servcies require you to be logged in. Is there anyway to bypass this? We >> want our own login system to be used in place of that of ofbiz. >> > > > > |
In reply to this post by Ján Valkovič
Actually I'm trying to run the services from an external java soap client (as given here : http://www.opensourcestrategies.com/ofbiz/OFBIZ_SOAP_RMI_Tutorial.pdf) and am not sure on how to access the ofbiz session in order to retrieve the user details from it
|
Try put parameters login.username and login.password
http://docs.ofbiz.org/display/OFBTECH/Service+Engine+Guide ya jaki wrote / napísal(a): > Actually I'm trying to run the services from an external java soap client (as > given here : > http://www.opensourcestrategies.com/ofbiz/OFBIZ_SOAP_RMI_Tutorial.pdf) and > am not sure on how to access the ofbiz session in order to retrieve the user > details from it > > > yanick wrote: > >> Hi, >> put userLogin as parameter to service, example in java: >> >> GenericValue userLogin = null; >> userLogin = (GenericValue) request.getSession().getAttribute("userLogin"); >> >> serviceContext.put("userLogin", userLogin); >> Map serviceReturn = dispatcher.runSync(serviceName, serviceContext); >> >> ya >> >> jaki wrote / napísal(a): >> >>> I am trying to use ofbiz webservices from an external app but some of >>> these >>> servcies require you to be logged in. Is there anyway to bypass this? We >>> want our own login system to be used in place of that of ofbiz. >>> >>> >> >> > > |
In reply to this post by Jaki-2
... and some interesting thins are here
http://www.opensourcestrategies.com/ofbiz/ofbiz_service_cookbook.txt too jaki wrote / napísal(a): > Actually I'm trying to run the services from an external java soap client (as > given here : > http://www.opensourcestrategies.com/ofbiz/OFBIZ_SOAP_RMI_Tutorial.pdf) and > am not sure on how to access the ofbiz session in order to retrieve the user > details from it > > > yanick wrote: > >> Hi, >> put userLogin as parameter to service, example in java: >> >> GenericValue userLogin = null; >> userLogin = (GenericValue) request.getSession().getAttribute("userLogin"); >> >> serviceContext.put("userLogin", userLogin); >> Map serviceReturn = dispatcher.runSync(serviceName, serviceContext); >> >> ya >> >> jaki wrote / napísal(a): >> >>> I am trying to use ofbiz webservices from an external app but some of >>> these >>> servcies require you to be logged in. Is there anyway to bypass this? We >>> want our own login system to be used in place of that of ofbiz. >>> >>> >> >> > > |
I am trying to use ofbiz webservices from an external app but some of these
servcies require you to be logged in To access a services via soap you must pass a user login with in-map , and services must have attribute export="true". Is there anyway to bypass this? We want our own login system to be used in place of that of ofbiz. you can use own login if it is associate with party and party has appropiate permission to run services. On Mon, Jun 23, 2008 at 7:41 PM, Ján Valkovič <[hidden email]> wrote: > ... and some interesting thins are here > http://www.opensourcestrategies.com/ofbiz/ofbiz_service_cookbook.txt too > > jaki wrote / napísal(a): > > Actually I'm trying to run the services from an external java soap client > (as > > given here : > > http://www.opensourcestrategies.com/ofbiz/OFBIZ_SOAP_RMI_Tutorial.pdf) > and > > am not sure on how to access the ofbiz session in order to retrieve the > user > > details from it > > > > > > yanick wrote: > > > >> Hi, > >> put userLogin as parameter to service, example in java: > >> > >> GenericValue userLogin = null; > >> userLogin = (GenericValue) > request.getSession().getAttribute("userLogin"); > >> > >> serviceContext.put("userLogin", userLogin); > >> Map serviceReturn = dispatcher.runSync(serviceName, serviceContext); > >> > >> ya > >> > >> jaki wrote / napísal(a): > >> > >>> I am trying to use ofbiz webservices from an external app but some of > >>> these > >>> servcies require you to be logged in. Is there anyway to bypass this? > We > >>> want our own login system to be used in place of that of ofbiz. > >>> > >>> > >> > >> > > > > > > |
Free forum by Nabble | Edit this page |