Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 6872 invoked from network); 4 Aug 2006 14:49:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 14:49:04 -0000 Received: (qmail 1291 invoked by uid 500); 4 Aug 2006 14:49:03 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 978 invoked by uid 500); 4 Aug 2006 14:49:02 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 948 invoked by uid 500); 4 Aug 2006 14:49:02 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 945 invoked by uid 99); 4 Aug 2006 14:49:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 07:49:02 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 07:49:01 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 667671A981F; Fri, 4 Aug 2006 07:48:41 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r428742 [2/2] - in /webservices/axis2/trunk/java/modules/jaxws: src/org/apache/axis2/jaxws/ src/org/apache/axis2/jaxws/client/proxy/ src/org/apache/axis2/jaxws/core/controller/ src/org/apache/axis2/jaxws/description/ src/org/apache/axis2/ja... Date: Fri, 04 Aug 2006 14:48:36 -0000 To: axis2-cvs@ws.apache.org From: scheu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060804144841.667671A981F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SAAJConverterTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SAAJConverterTests.java?rev=428742&r1=428741&r2=428742&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SAAJConverterTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/message/SAAJConverterTests.java Fri Aug 4 07:48:34 2006 @@ -23,13 +23,17 @@ import javax.xml.soap.SOAPBodyElement; import javax.xml.soap.SOAPElement; import javax.xml.soap.SOAPEnvelope; +import javax.xml.soap.SOAPFactory; import javax.xml.soap.SOAPMessage; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamReader; import junit.framework.TestCase; +import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; +import org.apache.axiom.om.OMFactory; +import org.apache.axiom.om.OMNamespace; import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder; import org.apache.axis2.jaxws.message.factory.SAAJConverterFactory; import org.apache.axis2.jaxws.message.util.SAAJConverter; @@ -150,4 +154,25 @@ om = converter.toOM(se); assertTrue(om.getLocalName().equals("a")); } + + /** + * @testStrategy: Create an OMElement, without using a builder. Verification of AXIS2-970 + */ + public void test3() throws Exception { + +// Step 1: Get the SAAJConverter object from the Factory + SAAJConverterFactory f = (SAAJConverterFactory) + FactoryRegistry.getFactory(SAAJConverterFactory.class); + SAAJConverter converter = f.getSAAJConverter(); + + // Stept 2: Create OM and parent SOAPElement + OMFactory fac = OMAbstractFactory.getOMFactory(); + OMNamespace wrapNs = fac.createOMNamespace("namespace", "prefix"); + OMElement ome = fac.createOMElement("localname", wrapNs); + SOAPFactory sf = SOAPFactory.newInstance(); + SOAPElement se = sf.createElement("name"); + + // Step 3: Do the conversion + converter.toSAAJ(ome, se, sf); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org