Please ignore this….I was being stupid
From:
[hidden email] [mailto:[hidden email]] On Behalf Of Michael Irving
Sent: Sunday, September 04, 2005
8:20 AM
To: [hidden email]
Subject: [OFBiz] Dev - New Service
Method not found...
I created a new service (Java). I’ve compiled it
and moved it to the OFBiz install. I bounced OFBiz and saw that the
service was loaded. When I use the service, I get “Service method
does not exist”. What am I forgetting to do???
My service is defined as follows:
<service name="createEmployee" engine="java" default-entity-name="Person"
location="com.aztec.hrms.employee.HrmsServices"
invoke="createEmployee"
auth="false">
<description>Create an Employee</description>
<auto-attributes mode="INOUT" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<override name="firstName" optional="false"/>
<override name="lastName" optional="false"/>
</service>
My request map is as follows:
<!-- Service Requests -->
<request-map uri="createEmployee">
<security https="true" auth="true"/>
<event type="service" invoke="createEmployee"/>
<response name="success" type="request" value="viewprofile"/>
<response name="error" type="view" value="error"/>
</request-map>
I verified that the service was loaded by looking in
ofbiz.log:
11891[ ModelServiceReader.java:243:INFO ] Loaded 1
Service definitions from
file:/E:/ofbiz_5521/applications/aztec-hrms/servicedef/services.xml
….and I looked at the service in Web Tools and
I can see the service definition.
When I use createEmployee, I see the following in
ofbiz.log:
66828[ ServiceDispatcher.java:381:DEBUG]
[[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'aztec-hrms /
createEmployee'
66828[ ServiceDispatcher.java:384:ERROR]
---- exception report
----------------------------------------------------------
Service [createEmployee] threw an unexpected
exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: Service method does not exist
(com.aztec.hrms.employee.HrmsServices.createEmployee(org.ofbiz.service.DispatchContext,
java.util.Map))
-----------------------------------------
Michael Irving
Keynetx, Inc. - Building Solutions
for Success
Fax: (425) 871-2838
email: [hidden email]
* * * Visit Our Web Site: http://www.keynetx.net * * *
--------------------------------------------------------------------------------
NOTICE: If received in error, please
destroy and notify sender. Sender does not waive confidentiality or privilege,
and use is prohibited.
Free forum by Nabble | Edit this page |