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 sa...@apache.org on 2004/06/10 12:28:37 UTC
cvs commit: ws-axis/c/tests/client/threadSafe Client.cpp
samisa 2004/06/10 03:28:37
Modified: c/tests/client/stubTest/stubBase InteropBaseClient.cpp
c/tests/client/threadSafe Client.cpp
Log:
Added test cases for trasport property accessors of Stub class
Added Stub duplication option to thread test
Revision Changes Path
1.6 +12 -0 ws-axis/c/tests/client/stubTest/stubBase/InteropBaseClient.cpp
Index: InteropBaseClient.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/stubTest/stubBase/InteropBaseClient.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- InteropBaseClient.cpp 10 Jun 2004 08:44:40 -0000 1.5
+++ InteropBaseClient.cpp 10 Jun 2004 10:28:37 -0000 1.6
@@ -56,6 +56,8 @@
//set HTTP headers
ws.setTransportProperty ("Accept-Language", " da, en-gb;q=0.8, en;q=0.7");
+ ws.setTransportProperty ("Accept-Language", "lang2");
+ ws.setTransportProperty ("Accept-Language", "lang3");
/*create a header of the form:
<SOAP-ENV:Header>
@@ -114,6 +116,16 @@
printf ("successful\n");
else
printf ("failed\n");
+
+ printf( "Test trasport property accessors\n" );
+ printf( "First trasport key = %s\n", ws.getFirstTrasportPropertyKey() );
+ printf( "First trasport value = %s\n", ws.getCurrentTrasportPropertyValue() );
+ char* key = NULL;
+ while( key = ws.getNextTrasportPropertyKey() )
+ {
+ printf( "Next trasport key = %s\n", key );
+ printf( "Next trasport value = %s\n", ws.getCurrentTrasportPropertyValue() );
+ }
// testing echoStringArray
xsd__string_Array arrstr;
1.2 +3 -2 ws-axis/c/tests/client/threadSafe/Client.cpp
Index: Client.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/Client.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Client.cpp 9 Jun 2004 10:57:34 -0000 1.1
+++ Client.cpp 10 Jun 2004 10:28:37 -0000 1.2
@@ -199,6 +199,7 @@
port = argv[2];
}
+ InteropTestPortType *ws = NULL;;
if (argc > 3)
{
printf("Usage :\n %s <server> <port>\n\n", argv[0]);
@@ -208,7 +209,7 @@
//sprintf(endpoint, "http://%s:%s/axis/base", server, port);
//endpoint for Axis Java sample
sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
- InteropTestPortType *ws = new InteropTestPortType(endpoint);
+ ws = new InteropTestPortType(endpoint);
}
pthread_t thread[NUM_THREADS];
@@ -222,7 +223,7 @@
for (t = 0; t < NUM_THREADS; t++)
{
printf("Creating thread %d\n", t);
- rc = pthread_create(&thread[t], &attr, run, NULL);
+ rc = pthread_create(&thread[t], &attr, run, (void*)ws);
if (rc)
{
printf("ERROR; return code from pthread_create() is %d\n", rc);