}
public void testCreateElement2() {
try {
SOAPFactory sf = SOAPFactory.newInstance();
//SOAPFactory sf = SOAPFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
if (sf == null) {
fail("could not create SOAPFactory object");
}
log.info("Create a DOMElement");
DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = dbfactory.newDocumentBuilder();
Document document = builder.newDocument();
Element de = document.createElementNS("http://MyNamespace.org/", "MyTag");
//Calling SOAPFactory.createElement(org.w3c.dom.Element)
SOAPElement se = sf.createElement(de);
if (!de.getNodeName().equals(se.getNodeName()) || !de.getNamespaceURI().equals(
se.getNamespaceURI())) {
//Node names are not equal
fail("Got: <URI=" + se.getNamespaceURI() + ", PREFIX=" +
se.getPrefix() + ", NAME=" + se.getNodeName() + ">" +