Re: How to access the services without passing http request
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 >>> in-map-name="createPersonCtx"> >> > field="createUlInMap.partyId"/> >> ] >> >> 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.
Re: How to access the services without passing http request
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 Divesh Dutta wrote: > > 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 >> > > > -- View this message in context: http://www.nabble.com/How-to-access-the-services-without-passing-http-request-tp23979212p23979872.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to access the services without passing http request
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 > in-map-name="createPersonCtx"> > field="createUlInMap.partyId"/> > ] > > 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 >> > > > -- View this message in context: http://www.nabble.com/How-to-access-the-services-without-passing-http-request-tp23979212p23979856.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to access the services without passing http request
Hello Prashanth, Is it something which you are looking for in-map-name="createPersonCtx"> field="createUlInMap.partyId"/> ] 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 Description: S/MIME Cryptographic Signature
Re: How to access the services without passing http request
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
How to access the services without passing http request
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 -- View this message in context: http://www.nabble.com/How-to-access-the-services-without-passing-http-request-tp23979212p23979212.html Sent from the OFBiz - User mailing list archive at Nabble.com.