Pages

Wednesday, March 28, 2012

Excel - Padding Left

Hi!

If you want to do a left side padding, just do the following.

=REPT("0",7-LEN(A1))&A1

Where

0 = Character to be repeated
7 = Final desired lenght
A1 = Cell where to apply the transformation

For example, if the original content of cell A1 was TOTO, you will get 000TOTO

Wednesday, March 21, 2012

SOAP Web Services - Generating Java artifacts with WSIMPORT

Hi

The Java JDK comes with an easy tool to generate Java Web Services artifacts. Prefer this method instead of JBoss wsconsume because if your JBoss is too old, it will lead to some random error (ClassCastException...)

You just have to type the following command.

wsimport -s source -p com.mypackage http://mywsdlpath
:8080/method?wsdl