Login  Register

Unable to override userLogin Service

Posted by John Martin on Oct 13, 2006; 3:34pm
URL: http://ofbiz.116.s1.nabble.com/Unable-to-override-userLogin-Service-tp142187.html

I'm integrating ofBiz with a 3rd party system using RMI.  I've copied
with success various service definitions into my own xml files to
issolate my changes from ofBiz. When I tried to override the userLogin
it wouldn't work.  I started getting:

      org.ofbiz.service.ServiceValidationException:

      The following required parameter is missing: [apUserLogin.login.password]
      The following required parameter is missing: [apUserLogin.login.username]

I tried debugging the ofBiz ServiceValidation functionality to see
what is happening.  It appears to me that the password and username
form variables are being removed from the context but unable to find
where that occurs.

My remote client is successful calling userLogin but fails calling my
apUserLogin service.  There is no difference between the services
except for the service name.

The problem seems to be specifically with the userLogin service call
because other services in the same servicedef xml file work.

Here's my steps:

1. Copied framework/common/servicedef/service.xml to service_ap.xml
2. Removed all but the methods I wanted to override (userLogin, updatePassword)
3. Added 'ap' prefix to each of the service names
4. Added export="true" to each service
5. Added xml file to the framework\common\ofbiz-component.xml

    <service-resource type="model" loader="main"
location="servicedef/services.xml"/>
    <service-resource type="model" loader="main"
location="servicedef/services_ap.xml"/>

Does anyone know what just the userLogin service would not work?

Thanks,

John