You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/12/06 12:22:16 UTC
svn commit: r354406 - in
/webservices/axis/trunk/c/tests/auto_build/testcases:
client/cpp/NamespaceTest1Client.cpp output/NamespaceTest1Request.expected
output/NamespaceTest1ServerResponse.expected
Author: dicka
Date: Tue Dec 6 03:22:06 2005
New Revision: 354406
URL: http://svn.apache.org/viewcvs?rev=354406&view=rev
Log:
Resolve problems with NamespaceTest1 testcase.
- Incorrectly formatted ServerResponse, causing MockServer to fail
- Client code not initializing all fields to be serialized
- Mixed use of cout and printf in client causing mis-ordering of output.
- Expected request file doesn't reflect recent changes to serialization of xsd:double and xsd:float.
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1Request.expected
webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1ServerResponse.expected
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp?rev=354406&r1=354405&r2=354406&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp Tue Dec 6 03:22:06 2005
@@ -31,12 +31,22 @@
TestServicePortType * pWS = new TestServicePortType( pszURL, APTHTTP1_1);
SampleBean sSB;
+ sSB.setBoolean(false_);
+ sSB.setByte(0);
+ sSB.setCalendar(NULL);
+ sSB.setDouble(0.000000000);
+ sSB.setFloat(0.00000);
+ sSB.setInt(0);
+ sSB.setLong(0);
+ sSB.setShort(0);
+ sSB.setString(NULL);
+ sSB.setTime(NULL);
pWS->aBeanPortType( &sSB);
delete pWS;
- printf( "Test completed without fault\n");
+ cout << "Test completed without fault" << endl;
bSuccess = true;
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1Request.expected
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1Request.expected?rev=354406&r1=354405&r2=354406&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1Request.expected (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1Request.expected Tue Dec 6 03:22:06 2005
@@ -2,7 +2,7 @@
Host: 127.0.0.1:13260
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
-Content-Length: 669
+Content-Length: 678
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
@@ -11,8 +11,8 @@
<Element xmlns:ns2="SimpleType"><ns2:Time xsi:nil="true"></ns2:Time><ns2:Boolean>false</ns2:Boolean>
<ns2:Byte>0</ns2:Byte>
<ns2:Calendar xsi:nil="true"></ns2:Calendar>
-<ns2:Double>0.000000</ns2:Double>
-<ns2:Float>0.000000</ns2:Float>
+<ns2:Double>0</ns2:Double>
+<ns2:Float>0</ns2:Float>
<ns2:Int>0</ns2:Int>
<ns2:Long>0</ns2:Long>
<ns2:Short>0</ns2:Short>
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1ServerResponse.expected
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1ServerResponse.expected?rev=354406&r1=354405&r2=354406&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1ServerResponse.expected (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/output/NamespaceTest1ServerResponse.expected Tue Dec 6 03:22:06 2005
@@ -4,18 +4,10 @@
Content-Language: en-GB
Transfer-Encoding: chunked
-1d7
+###
<?xml version="1.0" encoding="utf-8"?>
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<soapenv:Header/>
-<soapenv:Body>
-<NamespaceTest1Response>
-</NamespaceTest1Response>
-</soapenv:Body>
-</soapenv:Envelope>0 0
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><NamespaceTest1Response></NamespaceTest1Response></soapenv:Body></soapenv:Envelope>
+0
HTTP/1.1 200 OK
Server: WebSphere Application Server/5.1
@@ -23,16 +15,8 @@
Content-Language: en-GB
Transfer-Encoding: chunked
-1d7
+###
<?xml version="1.0" encoding="utf-8"?>
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<soapenv:Header/>
-<soapenv:Body>
-<NamespaceTest1Response>
-</NamespaceTest1Response>
-</soapenv:Body>
-</soapenv:Envelope>0 0
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><NamespaceTest1Response></NamespaceTest1Response></soapenv:Body></soapenv:Envelope>
+0