Hi
How to access the createPerson service by passing the required parameters to the simple-method in the form of a Map object, but the data is not comming from the request. But it comes from the Map that is passed. Is it possible to access the services without using http? Thanks & Regards Prashanth Jilla |
Hello Prashanth,
Is it something which you are looking for <call-service service-name="createPerson" in-map-name="createPersonCtx"> <result-to-field result-name="partyId" field="createUlInMap.partyId"/> </call-service>] Refer PartySimpleMethods.xml file. Thanks ! -- Vivek Mishra jillas wrote: > Hi > > How to access the createPerson service by passing the required > parameters to the simple-method in the form of a Map object, but the data is > not comming from the request. But it comes from the Map that is passed. Is > it possible to access the services without using http? > > Thanks & Regards > Prashanth Jilla > smime.p7s (4K) Download Attachment |
In reply to this post by jillas
Hi Prashant please send in detail what you are trying to do. And what
are you expecting. And what is not happening. May be code snippet and errors will help us to understand your problem. Thanks -- Divesh jillas wrote: > Hi > > How to access the createPerson service by passing the required > parameters to the simple-method in the form of a Map object, but the data is > not comming from the request. But it comes from the Map that is passed. Is > it possible to access the services without using http? > > Thanks & Regards > Prashanth Jilla > |
In reply to this post by Vivek Mishra-2
Hi Vivek
The requirement is to insert the customer data which is in the format of xml into the database with out any UI and after insertion of the data, the customer should able to access the shopping cart with his/her newly created userid/pwd. Thanks & Regards Prashanth Jilla
|
In reply to this post by Divesh Dutta
Hi Divesh
The requirement is to insert the customer data which is in the format of xml into the database with out any UI and after insertion of the data, the customer should able to access the shopping cart with his/her newly created userid/pwd. Please let me know how to resolve this issue. Thanks & Regards Prashanth Jilla
|
In reply to this post by Vivek Mishra-2
if I understand you, you want to import xml and create a person from
the data. this is more a general overview for you to get you pointed in the general direction, not give you a complete solution. you can do this a couple of ways: 1)for the import you can use a xlst type of transform, using Ftl to make entity xml out of the import data. look at the code in framework\base\src\org\ofbiz\base\util\template then use the webtools code to import the entities. 2)you can write java code to read the xml code then map the data. you can look at the webtool entity import code to see show to read in xml. you then use runsync to call the service. look through the code to to find examples for runsync. jillas sent the following on 6/11/2009 4:50 AM: > Hi Vivek > > The requirement is to insert the customer data which is in the format > of xml into the database with out any UI and after insertion of the data, > the customer should able to access the shopping cart with his/her newly > created userid/pwd. > > > Thanks & Regards > Prashanth Jilla > > > Vivek Mishra-2 wrote: >> Hello Prashanth, >> >> Is it something which you are looking for >> <call-service service-name="createPerson" >> in-map-name="createPersonCtx"> >> <result-to-field result-name="partyId" >> field="createUlInMap.partyId"/> >> </call-service>] >> >> Refer PartySimpleMethods.xml file. >> >> Thanks ! >> -- >> Vivek Mishra >> >> jillas wrote: >>> Hi >>> >>> How to access the createPerson service by passing the required >>> parameters to the simple-method in the form of a Map object, but the data >>> is >>> not comming from the request. But it comes from the Map that is passed. >>> Is >>> it possible to access the services without using http? >>> >>> Thanks & Regards >>> Prashanth Jilla >>> >> >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
Free forum by Nabble | Edit this page |