Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added titiles to the code

I use this for making Import Classes that do CRUD using services.
It works on windows. Have to figure out how to do this on linux.
got a service page like https://localhost:8443/webtools/control/availableServices
select a service https://localhost:8443/webtools/control/availableServices?sel_service_name=createProduct
highlight the In parameters area
so you can copy all the parameters
then using a editor that does not change the copy data, like PFE (old free editor)paste parameters as is
then open a blank Excel workbook
copy from the editor into excel
if everything went well you should see the columns from the service parameters in separate columns in excel
Now you can move them around and add columns to put in the strings you want
as an example

Code Block
titleFrom the service in parameteres
amountUomTypeId  	True  	String  	IN  	False  	 Product   	amountUomTypeId
fixedAmount  	True  	Double  	IN  	False  	 Product   	fixedAmount

become

Code Block
titleModified in Excel
private String  amountUomTypeId  	String  	; <--note the semicolon
private Double  fixedAmount             Double  	;

you an use the CTRL-D to propogate the columns down for say
private
now you copy the whole list back to you editor
and do a replace of

Code Block
titleModifying in the text editor
String  	;<--note the semicolon to distinquish between the other "String" in the line

with

Code Block
=null;

then use the replace and remove the tabs(\t) with a single space.
so you end with

Code Block
titlecode in the class
private String  amountUomTypeId  	=null;
private Double  fixedAmount             =0.0;

...