globalme - 2011-12-05

hi,

i want to use web service to register a client through launching the process "initial client setup".

i configure a web service named "register_client" in Web Service Security. The questions came up:

1,in Tab "web service type", i select "model oriented web services_Run Process", but for Table, as the "initial client setup" will do multiple tables so i select "AD_Client_Client". Am i right?

2,As shown in the source code of InitialClientSetup.java, i make all the required fields in Tab  "web service parameters", they are:
AD_Menu_ID Constant 225
AD_Process_ID Constant 53161
C_Currency_ID Constant 100
C_Country_ID Constant 100
CoAFile Constant C:\ADempiere\data\import\AccountingUS.csv
ClientName Free
OrgName  Free
AdminUserName  Free
NormalUserName  Free

3, i save the web service security and launch the jboss. i put in the XML below and failed like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adin="http://3e.pl/ADInterface">
   <soapenv:Header/>
   <soapenv:Body>
      <adin:runProcess>
         <adin:ModelRunProcessRequest>
            <adin:ModelRunProcess AD_Process_ID="53161" AD_Menu_ID="225">
               <adin:ParamValues/><adin:serviceType>register_client</adin:serviceType>
               <adin:ClientName>register_client_1</adin:ClientName>
               <adin:OrgName>register_org_1t</adin:OrgName>
               <adin:AdminUserName>clientAdmin_1</adin:AdminUserName>
               <adin:NormalUserName>clientUser_1</adin:NormalUserName>
            </adin:ModelRunProcess>
            <adin:ADLoginRequest>
               <adin:user>System</adin:user>
               <adin:pass>System</adin:pass>
               <adin:lang>192</adin:lang>
               <adin:ClientID>0</adin:ClientID>
               <adin:RoleID>0</adin:RoleID>
               <adin:OrgID>0</adin:OrgID>
               <adin:WarehouseID>103</adin:WarehouseID>
               <adin:stage>0</adin:stage>
            </adin:ADLoginRequest>
         </adin:ModelRunProcessRequest>
      </adin:runProcess>
   </soapenv:Body>
</soapenv:Envelope>

The returned XML is :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Client</faultcode>
         <faultstring>Fault: java.lang.NullPointerException</faultstring>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

So please help me to fix this, thanks very much!

the eager learner of ADempiere