hi, Has anybody used the SOAPFactory class to create SOAP elements ? I am trying to create a SOAP element from a DOM object so that I can pass a XML DOM document as a SOAP message back to the client.
The code I use is as follows: org.w3c.dom.Node MyNode = MyDocument.getDocumentElement(); SOAPFactory sFactory = SOAPFactory.newInstance(); SOAPElement sElement = sFactory.createElement(MyNode.getLocalName(), MyNode.getPrefix(), MyNode.getNamespaceURI()); The "sElement" variable is always null. i.e. I am unable to get a SOAP element from the createElement method ! Any help will be appreciated. Thanks, kevin.
