axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r208722 - in /webservices/axis/trunk/java/modules: samples/test/org/apache/axis/engine/EchoRawMTOMToBase64Test.java xml/test/org/apache/axis/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java
Date Fri, 01 Jul 2005 06:50:19 GMT
Author: thilina
Date: Thu Jun 30 23:50:18 2005
New Revision: 208722

URL: http://svn.apache.org/viewcvs?rev=208722&view=rev
Log:
MTOM test case changes

Modified:
    webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawMTOMToBase64Test.java
    webservices/axis/trunk/java/modules/xml/test/org/apache/axis/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java

Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawMTOMToBase64Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawMTOMToBase64Test.java?rev=208722&r1=208721&r2=208722&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawMTOMToBase64Test.java
(original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis/engine/EchoRawMTOMToBase64Test.java
Thu Jun 30 23:50:18 2005
@@ -47,7 +47,7 @@
     private EndpointReference targetEPR =
             new EndpointReference(AddressingConstants.WSA_TO,
                     "http://127.0.0.1:"
-            + (UtilServer.TESTING_PORT+1)
+            + (UtilServer.TESTING_PORT)
             + "/axis/services/EchoXMLService/echoMTOMtoBase64");
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("EchoXMLService");
@@ -91,7 +91,7 @@
     	
     	 OMFactory fac = OMAbstractFactory.getOMFactory();
     	 OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
-    	 OMElement rpcWrapEle = fac.createOMElement("methodeWrap",omNs);
+    	 OMElement rpcWrapEle = fac.createOMElement("echoMTOMtoBase64",omNs);
 		 OMElement data = fac.createOMElement("data", omNs);
 		 byte[] byteArray = new byte[] { 13, 56, 65, 32, 12, 12, 7, -3, -2, -1,
 				98 };
@@ -104,7 +104,9 @@
 
 
     public void testEchoXMLSync() throws Exception {
-        SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+    	for(int i=0; i<10;i++)
+    	{
+    	SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
 
         OMElement payload = createEnvelope();
 
@@ -118,6 +120,8 @@
                 (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
         result.serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
         call.close();
+        System.out.println(i);
+    	}
     }
 
    /* public void testCorrectSOAPEnvelope() throws Exception {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java?rev=208722&r1=208721&r2=208722&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java
(original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java
Thu Jun 30 23:50:18 2005
@@ -51,7 +51,7 @@
 		super(testName);
 	}
 	
-	String contentTypeString = "multipart/Related; type=\"application/xop+xml\"; boundary=\"----=_Part_0_9971081.1119397256753\";
start=\"<SOAP part>\"";
+	String contentTypeString = "multipart/Related; type=\"application/xop+xml\"; boundary=\"----=_AxIs2_Def_boundary_=42214532\";
start=\"<SOAPPart>\"";
 	
 	protected void setUp() throws Exception {
 		super.setUp();
@@ -74,6 +74,7 @@
 		OMElement body = (OMElement) root.getFirstChild();
 		System.out.println(body.getLocalName() + " : "
 				+ body.getNamespace().getName());
+		
 		OMElement data = (OMElement) body.getFirstChild();
 		System.out.println(data.getLocalName() + " : "
 				+ data.getNamespace().getName());
@@ -91,8 +92,8 @@
 				-1, 98 };
 		DataHandler actualDH;
 		actualDH = blob.getDataHandler();
-		ByteArrayInputStream object = (ByteArrayInputStream) actualDH
-		.getContent();
+		//ByteArrayInputStream object = (ByteArrayInputStream) actualDH
+		//.getContent();
 		//byte[] actualObject= null;
 		//  object.read(actualObject,0,10);
 		



Mime
View raw message