You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2004/12/08 12:51:57 UTC
svn commit: r111264 - in webservices/axis/trunk/java/dev/scratch/prototype2: . src/test-resources/badsoap src/test/org/apache/axis/om
Author: hemapani
Date: Wed Dec 8 03:51:49 2004
New Revision: 111264
URL: http://svn.apache.org/viewcvs?view=rev&rev=111264
Log:
add a test case to ceck wrong SOAP message .. exclude it as it fails
Added:
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/bodyNotQualified.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/envelopeMissing.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/haederBodyWrongOrder.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/notnamespaceQualified.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoBodymessage.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoheaders.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/wrongSoapNs.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java
Modified:
webservices/axis/trunk/java/dev/scratch/prototype2/project.xml
webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/project.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/project.xml?view=diff&rev=111264&p1=webservices/axis/trunk/java/dev/scratch/prototype2/project.xml&r1=111263&p2=webservices/axis/trunk/java/dev/scratch/prototype2/project.xml&r2=111264
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/project.xml (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/project.xml Wed Dec 8 03:51:49 2004
@@ -81,7 +81,7 @@
<excludes>
<exclude>**/*Abstract*.java</exclude>
<exclude>**/*Util*.java</exclude>
- <!-- <exclude>**/*EchoRawXMLTest.java</exclude> -->
+ <exclude>**/*BadInputTest.java</exclude>
</excludes>
<includes>
<include>**/*Test.java</include>
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/bodyNotQualified.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/bodyNotQualified.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/bodyNotQualified.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,12 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <echoVoid></echoVoid>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/envelopeMissing.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/envelopeMissing.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/envelopeMissing.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,12 @@
+<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2" ></axis2:echoVoid>
+ </soapenv:Body>
+</soapenv:Body>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/haederBodyWrongOrder.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/haederBodyWrongOrder.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/haederBodyWrongOrder.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,12 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2" ></axis2:echoVoid>
+ </soapenv:Body>
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+</soapenv:Envelope>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/notnamespaceQualified.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/notnamespaceQualified.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/notnamespaceQualified.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,12 @@
+<Envelope>
+ <Header>
+ <MessageID mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</MessageID>
+ <To mustUnderstand="0">http://localhost:8081/axis/services/BankPort</To>
+ <From mustUnderstand="0">
+ <Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </From>
+ </Header>
+ <Body>
+ <echoVoid></echoVoid>
+ </Body>
+</Envelope>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoBodymessage.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoBodymessage.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoBodymessage.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,15 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2" ></axis2:echoVoid>
+ </soapenv:Body>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2" ></axis2:echoVoid>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoheaders.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoheaders.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/twoheaders.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,18 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/wrongSoapNs.xml
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/wrongSoapNs.xml?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/badsoap/wrongSoapNs.xml Wed Dec 8 03:51:49 2004
@@ -0,0 +1,12 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/badsoap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2" ></axis2:echoVoid>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java?view=auto&rev=111264
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/BadInputTest.java Wed Dec 8 03:51:49 2004
@@ -0,0 +1,168 @@
+/**
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * <p/>
+ * Author: Eran Chinthaka - Lanka Software Foundation
+ * Date: Nov 2, 2004
+ * Time: 2:39:39 PM
+ */
+package org.apache.axis.om;
+
+import java.io.File;
+
+import org.apache.axis.engine.AxisFault;
+
+
+
+
+public class BadInputTest extends OMTestCase {
+ /**
+ * @param testName
+ */
+ File dir = new File(testResourceDir,"badsoap");
+ public BadInputTest(String testName) {
+ super(testName);
+ }
+
+ public void testBodyNotQualified()throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"bodyNotQualified.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+ public void testEnvelopeMissing()throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"envelopeMissing.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+ public void testhaederBodyWrongOrder()throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"haederBodyWrongOrder.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+ public void testNotnamespaceQualified()throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"notnamespaceQualified.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+ public void testTwoBodymessage()throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"twoBodymessage.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+ public void testTwoheaders()throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"twoheaders.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+ public void testWrongSoapNs() throws Exception{
+ try {
+ SOAPEnvelope soapEnvelope =
+ (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir,"wrongSoapNs.xml")).getDocumentElement();
+ OMTestUtils.walkThrough(soapEnvelope);
+ } catch (OMException e) {
+ e.printStackTrace();
+ System.out.println(e);
+ }catch(AxisFault e){
+ e.printStackTrace();
+ System.out.println(e);
+ }
+ fail("this must failed gracefully with OMException or AxisFault");
+ }
+
+// public void testAllMessagesInBadSOAP() throws OMException, Exception{
+// File dir = ;
+// File[] files = dir.listFiles();
+//
+// if(files != null){
+// for(int i = 0;i<files.length;i++){
+// System.out.print(files[i] + "=");
+// try {
+// if(files[i].isFile() && files[i].getName().endsWith(".xml")){
+// SOAPEnvelope soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(
+// files[i]).getDocumentElement();
+// OMTestUtils.walkThrough(soapEnvelope);
+// }
+// } catch (OMException e) {
+// System.out.println(e);
+// }catch(AxisFault e){
+// System.out.println(e);
+// }catch(Exception e){
+// e.printStackTrace();
+// fail("must failed gracefully with OMException or AxisFault");
+// return;
+// }
+// }
+// }
+// }
+}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java?view=diff&rev=111264&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java&r1=111263&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java&r2=111264
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/CompareOMWithDOMTest.java Wed Dec 8 03:51:49 2004
@@ -35,7 +35,7 @@
super(testName);
}
- public void testSecuritySample2() throws OMException, Exception{
+ public void testAllMessagesInSOAP() throws OMException, Exception{
File dir = new File(testResourceDir,"soap");
File[] files = dir.listFiles();
if(files != null){
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java?view=diff&rev=111264&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java&r1=111263&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java&r2=111264
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/om/OMTestUtils.java Wed Dec 8 03:51:49 2004
@@ -27,9 +27,12 @@
import org.apache.axis.impl.llom.builder.StAXBuilder;
import org.apache.axis.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis.impl.llom.wrapper.OMXPPWrapper;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
+import org.xmlpull.v1.XmlPullParser;
+import org.xmlpull.v1.XmlPullParserFactory;
/**
* @author Srinath Perera(hemapani@opensource.lk)
@@ -37,10 +40,8 @@
public class OMTestUtils {
public static OMXMLParserWrapper getOMBuilder(File file) throws Exception {
-
XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(file));
StAXBuilder builder = new StAXSOAPModelBuilder(OMFactory.newInstance(),parser);
-
return builder;
}
@@ -89,6 +90,10 @@
}else{
throw new Exception("One is null");
}
+ }
+
+ public static SOAPEnvelope createOM(File file) throws Exception{
+ return (SOAPEnvelope)getOMBuilder(file).getDocumentElement();
}
}