HI Tony, In your case I would create an ofbiz service in your hot-deploy folder (follow the helloworld tutorials) and then export it... In your service you would call 1, 2, and 4, I am pretty sure 4 calls number 3.
Regards MArk On Tue, Apr 8, 2008 at 10:05 AM, Yitao_Zhao <[EMAIL PROTECTED]> wrote: > Hi, I am trying to create a customer via webservice. I am following these > steps > > 1) Call createPerson > 2) Call createPartyRole > Here there are some things I don't understand: > Why does it create two roles: CUSTOMER and _NA_, is this correct?, I have > only set it to create role type CUSTOMER > When a role have been created, should I then get the role ID and use that > next time - I cannot find any service methods that have something like > getPartyRoleID > There are some service methods like ensureNaPartyRole, should I use them > for > anything? > 3) call createPartyContactMech service, it generates a record for > POSTAL_ADDRESS ,but how can I set the parameters for POSTAL_ADDRESS > > 4) Call createPartyPostalAddress > This creates another record, where I can fill out address information > > My question for step 3 and 4 is, how do I create an address with one > service > call? What is the right way? > > Best regards > > Tony. > >
