factory.createSOAPBody(env);
checkAddChild(env, false);
}
public void testAppendSOAP12() throws Exception {
SOAP12Factory factory;
SOAPEnvelope env;
// SOAP 1.2 only allows SOAPHeader and SOAPBody elements
// All these addChild() should fail
factory = new SOAP12Factory();
env = factory.createSOAPEnvelope();
checkAddChild(env, true);
factory = new SOAP12Factory();
env = factory.createSOAPEnvelope();
factory.createSOAPHeader(env);
checkAddChild(env, true);
factory = new SOAP12Factory();
env = factory.createSOAPEnvelope();
factory.createSOAPBody(env);
checkAddChild(env, true);
factory = new SOAP12Factory();
env = factory.createSOAPEnvelope();
factory.createSOAPHeader(env);
factory.createSOAPBody(env);
checkAddChild(env, true);
}