Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 50903 invoked from network); 8 Oct 2006 23:52:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Oct 2006 23:52:33 -0000 Received: (qmail 52225 invoked by uid 500); 8 Oct 2006 23:51:57 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 51957 invoked by uid 500); 8 Oct 2006 23:51:56 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 51643 invoked by uid 99); 8 Oct 2006 23:51:50 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of davanum@gmail.com designates 66.249.82.232 as permitted sender) Received: from [66.249.82.232] (HELO wx-out-0506.google.com) (66.249.82.232) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Oct 2006 16:51:48 -0700 Received: by wx-out-0506.google.com with SMTP id s8so1343055wxc for ; Sun, 08 Oct 2006 16:51:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s05le1vIgUIgG+lPZt3Jfarbfkzv0++dN0ajS8DUNqeK3TB9Qb8Vr1Pvh6jndJKohWljKKH+TA8+YyEeuhqUUvmONskhX49wvk8CG9u6j5JXcDacKWZHNqRORPn7vWPgSsBfSfmsgZqhicfoNVQMm0V30MGM8Q5wCcHIObZ8zKs= Received: by 10.70.38.12 with SMTP id l12mr10115654wxl; Sun, 08 Oct 2006 16:44:15 -0700 (PDT) Received: by 10.70.94.6 with HTTP; Sun, 8 Oct 2006 16:44:15 -0700 (PDT) Message-ID: <19e0530f0610081644q45129ed3jdde1f4c9339b132a@mail.gmail.com> Date: Sun, 8 Oct 2006 19:44:15 -0400 From: "Davanum Srinivas" Reply-To: dims@apache.org To: axis-user@ws.apache.org, "Martin Gainty" Subject: Re: [Axis2] SAX or DOM (Possibly O/T) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <30732BB026652E4BB0B2C83B31E380BF2C0C31@ord-mail.serena.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N martin, no, you don't need that. all u need is the woodstox parser and staxapi jar. http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar thx, dims On 10/8/06, Martin Gainty wrote: > Good Evening Thilina- > > I dl'ed AXIOM and made TestDriver.java > > import java.io.*; > import java.sql.*; > import javax.xml.stream.*; > import org.apache.log4j.PropertyConfigurator; > import org.apache.log4j.Category; > import org.apache.axiom.om.impl.builder.*; > import org.apache.axiom.om.*; > //import com.edischarge.batchloader.Patient; > > public class TestDriver { > /*sourceFile specification ...MCG */ > private String sourceFile = null; > > /** Database Connection Object */ > private Connection con = null; > > /** Log4J log object */ > private static Category log = Category.getInstance( TestDriver.class.getName()); > //nothing for now > public TestDriver() > { > } > > public static void main(String[] args) > { > try > { > System.out.println("args[0] == "+args[0]); > > //create the parser > java.io.File file = new java.io.File(args[0]); > java.io.FileInputStream fis = new java.io.FileInputStream(file); > > XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(fis); > > //create the builder > StAXOMBuilder builder = new StAXOMBuilder(parser); > > //get the root element (in this case the envelope) > OMElement documentElement = builder.getDocumentElement(); > } > catch(java.lang.ArrayIndexOutOfBoundsException iao) > { > System.out.println("USAGE: TestDriver XMLFileNameToParse"); > return; > } > catch(java.io.FileNotFoundException fnf) > { > System.out.println("FileNotFoundException has been found message = "+fnf.getMessage()); > return; > } > catch(javax.xml.stream.XMLStreamException xml_excp) > { > System.out.println("XMLStreamException has been encountered"); > return; > } > } //end main > > } //end class TestDriver > > after compiling I run it as > > java TestDriver OMTutorial.xml > > args[0] == OMTutorial.xml > Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider > com.bea.xml.stream.MXParserFactory not found > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) > at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136 > ) > at TestDriver.main(TestDriver.java:35) > > I need the jsr173_ri.jar to resolve the com.bea.xml.stream.MXParserFactory not found error > > Thanks, > Martin- > Information in this message, including attachments, is intended only for the confidential use of the recipient(s) named > above. This message may be an Attorney-Client communication and as such is privileged and confidential. > If you are not an intended recipient of this message, or an agent responsible for delivering it to an intended recipient > , you are hereby notified that you have received this message in error, that any review, dissemination, distribution, > or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender > immediately, delete the message, and return any hard copy print-outs. > This e-mail communication and any attachments may contain confidential and privileged information for the use of the > designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received > this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its > conte > ----- Original Message ----- > From: "Thilina Gunarathne" > To: ; "Martin Gainty" > Sent: Saturday, October 07, 2006 3:08 PM > Subject: Re: [Axis2] SAX or DOM > > > > You can use the following..Those are the once we are using with Axis2 latest... > > > > http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar > > http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar > > > > ~Thilina > > > > On 10/7/06, Martin Gainty wrote: > >> Good Morning Thilina > >> > >> Do you know where we can acquire the jsr173_ri.jar? > >> > >> Thanks, > >> > >> Martin- > >> This e-mail communication and any attachments may contain confidential and privileged information for the use of the > >> designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received > >> this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its > >> conte > >> ----- Original Message ----- > >> From: "Thilina Gunarathne" > >> To: > >> Sent: Saturday, October 07, 2006 6:49 AM > >> Subject: Re: [Axis2] SAX or DOM > >> > >> > >> > Axis2 uses StAX parsing, which is also called deferred parsing.. It is > >> > possible for Axis2 to start processing the message before the entire > >> > request has been transmitted. This works even for attachments.. In > >> > Axis2 objects are not made unless a need arises for them. In other > >> > words stream is read only when needed.. > >> > > >> > Refer to the following tutorial for more in for on StAX parsing.. > >> > OM Tutorial - http://ws.apache.org/commons/axiom/OMTutorial.html > >> > Introduction to Pull parsing - > >> > http://www.bearcave.com/software/java/xml/xmlpull.html > >> > Introduction to StAX - > >> > http://today.java.net/pub/a/today/2006/07/20/introduction-to-stax.html > >> > > >> > ~Thilina > >> > > >> > On 10/7/06, Betsy Frey wrote: > >> >> In Axis2, is there a way for the server to start receiving a very long > >> >> request, before the entire request has been transmitted? Similarly, is > >> >> there a way for the client to start receiving a very long response, > >> >> before the entire response has been transmitted? > >> >> > >> >> Perhaps this comes down to asking whether SAX or DOM is used for XML > >> >> parsing in Axis2. > >> >> > >> >> Thanks. > >> >> > >> >> Betsy Frey > >> >> > >> >> > >> >> ********************************************************************** > >> >> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > >> >> For additional commands, e-mail: axis-user-help@ws.apache.org > >> >> > >> >> > >> > > >> > > >> > > >> > -- > >> > http://webservices.apache.org/~thilina/ > >> > http://thilinag.blogspot.com/ > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > >> > For additional commands, e-mail: axis-user-help@ws.apache.org > >> > > >> > > > > > > > -- > > http://webservices.apache.org/~thilina/ > > http://thilinag.blogspot.com/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org