You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by sa...@apache.org on 2001/03/23 08:48:30 UTC
cvs commit: xml-soap/java/samples/messaging SendMessage.java
sanjiva 01/03/22 23:48:30
Modified: java/samples/messaging SendMessage.java
Log:
updated to use the new jaxp stuff
Revision Changes Path
1.3 +4 -2 xml-soap/java/samples/messaging/SendMessage.java
Index: SendMessage.java
===================================================================
RCS file: /home/cvs/xml-soap/java/samples/messaging/SendMessage.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SendMessage.java 2000/09/05 15:35:40 1.2
+++ SendMessage.java 2001/03/23 07:48:30 1.3
@@ -2,7 +2,9 @@
import java.io.*;
import java.net.*;
+import javax.xml.parsers.*;
import org.w3c.dom.*;
+import org.xml.sax.*;
import org.apache.soap.*;
import org.apache.soap.messaging.*;
import org.apache.soap.transport.*;
@@ -25,8 +27,8 @@
// get the envelope to send
FileReader fr = new FileReader (args[1]);
- XMLParserLiaison xpl = new XercesParserLiaison ();
- Document doc = xpl.read ("- SOAP HTTP Envelope -", fr);
+ DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
+ Document doc = xdb.parse (new InputSource (fr));
if (doc == null) {
throw new SOAPException (Constants.FAULT_CODE_CLIENT, "parsing error");
}