axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sebastian" <kseba...@kivera.com>
Subject Query about SOAPFactory
Date Tue, 25 Jun 2002 17:07:21 GMT
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.

Mime
View raw message