int i = 0; //Input: single part message / simple type (xsd:int) -> Integer class if(Input != null)//always check for null { i = Input.intValue(); } //MyInt xsd-type (xsd:int) -> Integer class MyInt = new Integer(i);