I’m trying to build a form for creating employees….and
I want to use the existing service “createPerson”. In my controller.xml,
I tried – invoke=”createPerson” and invoke=”party/createPerson”…..but
neither are working. What is the best way to call a service from an
application when the service exists in another application? Can you point me
to an example? <request-map uri="createEmployee"> <!-- <security https="true"
auth="true"/> --> <event type="service" path="" invoke="party/createPerson"/> <response name="success" type="view" value="EditEmployee"/> <response name="error" type="view" value="EditEmployee"/>
</request-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. _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
The correct way is as follows:
<request-map uri="createEmployee"> <!-- <security https="true" auth="true"/> --> <event type="service" path="" invoke="createPerson"/> <response name="success" type="view" value="EditEmployee"/> <response name="error" type="view" value="EditEmployee"/> </request-map> This is true when: 1)you are loading the party component 2)you have a first name in the form that is calling createPerson 3)you have a last name in the form that is calling createPerson Notice that in the party component that the EditPerson form is what is making the createPerson request (which is invoking the createPerson service). I suspect that if yours isn't working it is because you're calling createPerson without any variables. --- Michael Irving <[hidden email]> wrote: > I'm trying to build a form for creating > employees..and I want to use the > existing service "createPerson". In my > controller.xml, I tried - > invoke="createPerson" and > invoke="party/createPerson"...but neither are > working. What is the best way to call a service > from an application when > the service exists in another application? Can you > point me to an example? > > > > <request-map uri="createEmployee"> > > <!-- <security https="true" auth="true"/> > --> > > <event type="service" path="" > invoke="party/createPerson"/> > > <response name="success" type="view" > value="EditEmployee"/> > > <response name="error" type="view" > value="EditEmployee"/> > > </request-map> > > > > ----------------------------------------- > > Michael Irving > > Keynetx, Inc. - Building Solutions for Success > > Mobile: (267)474.3564 > > Fax: (425) 871-2838 > > email: [hidden email] > > > > * * * Visit Our Web Site: <http://www.keynetx.net/> > 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. > > > > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
In reply to this post by Michael Irving
Hello,
If the party application is successfully loaded, the just invoke="createPerson" is ok, because the service definition is globally, and are globally accessible via it's name alone. On 8/22/05, Michael Irving <[hidden email]> wrote: > > > > I'm trying to build a form for creating employees….and I want to use the > existing service "createPerson". In my controller.xml, I tried – > invoke="createPerson" and invoke="party/createPerson"…..but > neither are working. What is the best way to call a service from an > application when the service exists in another application? Can you point > me to an example? > > > > <request-map uri="createEmployee"> > > <!-- <security https="true" auth="true"/> --> > > <event type="service" path="" invoke="party/createPerson"/> > > <response name="success" type="view" value="EditEmployee"/> > > <response name="error" type="view" value="EditEmployee"/> > > </request-map> > > > > ----------------------------------------- > > Michael Irving > > Keynetx, Inc. - Building Solutions for Success > > Mobile: (267)474.3564 > > 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. > > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev > > -- Best regards, Yan _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Free forum by Nabble | Edit this page |