Cleanded up the Java code and fixed the adding of a soap:Header when one was missing.