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 da...@apache.org on 2004/08/13 11:09:15 UTC

cvs commit: ws-axis/c/tests/auto_build/linux/testcases/client/cpp ExtensibilityQueryClient.cpp RpcHttpHeaderTest1Client.cpp RpcHttpHeaderTest2Client.cpp RpcHttpHeaderTest3Client.cpp RpcHttpHeaderTest4Client.cpp RpcHttpHeaderTest5Client.cpp RpcHttpHeaderTest7Client.cpp RpcHttpHeaderTest8Client.cpp

damitha     2004/08/13 02:09:15

  Added:       c/tests/auto_build/linux/testcases/client/cpp
                        ExtensibilityQueryClient.cpp
                        RpcHttpHeaderTest1Client.cpp
                        RpcHttpHeaderTest2Client.cpp
                        RpcHttpHeaderTest3Client.cpp
                        RpcHttpHeaderTest4Client.cpp
                        RpcHttpHeaderTest5Client.cpp
                        RpcHttpHeaderTest7Client.cpp
                        RpcHttpHeaderTest8Client.cpp
  Log:
  Added main method files for the tests
  
  Revision  Changes    Path
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/ExtensibilityQueryClient.cpp
  
  Index: ExtensibilityQueryClient.cpp
  ===================================================================
  #include "ExtensibilityQueryPortType.h"
  
  int main(void)
  {
      AnyType* pAny = new AnyType();
      pAny->_size = 2;
      pAny->_array = new char*[2];
  
      pAny->_array[0] = strdup("<queryExpression><queryByServiceDataNames xsi:type=\"ns1:QNamesType\" xmlns:ns1=\"http://www.gridforum.org/namespaces/2003/03/OGSI\"><name>serviceDataName</name></queryByServiceDataNames></queryExpression>");
      pAny->_array[1] = strdup("<getQuoteResponse xmlns=\"http://www.getquote.org/test\"><result><name>Widgets Inc.</name><symbol>WID</symbol><public>true</public></result></getQuoteResponse>");
  
      string str;
      try{
  
          ExtensibilityQueryPortType* pStub = new ExtensibilityQueryPortType("http://localhost:9090/axis/testXSDANY",APTHTTP);
          AnyType* pAnyReturn = pStub->query(pAny);
  		if (!pAnyReturn)
  		{
  			printf("Returned AnyType is null\ntest failed\n");
  			exit(1);
  		}	
          for (int i=0; i<pAnyReturn->_size; i++)
          {
  			printf("\nSent xml string: \n%s\n", pAny->_array[i]);
  			printf("\nReturned xml string: \n%s\n", pAnyReturn->_array[i]);
          }
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.getExceptionCode());
      }
  
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest1Client.cpp
  
  Index: RpcHttpHeaderTest1Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  #include <stdio.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //set HTTP headers
      ws.setTransportProperty("Accept-Language", " da, en-gb;q=0.8, en;q=0.7");
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
      printf("Test trasport property accessors\n");
      printf("First trasport key = %s\n", ws.getFirstTrasportPropertyKey());
      printf("First trasport value = %s\n",
             ws.getCurrentTrasportPropertyValue());
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("Accept-Language");
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("unknown exception\n");
      }
  
      printf("HTTP Header test end\n");
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest2Client.cpp
  
  Index: RpcHttpHeaderTest2Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //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");
      ws.setTransportProperty("Date", "Sat, 26 Jun 2004 13:32:19 GMT");
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\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;
      int count = 1;
      while (key = ws.getNextTrasportPropertyKey())
      {
          printf("Next trasport key = %s\n", key);
          printf("Next trasport value = %s\n",
                 ws.getCurrentTrasportPropertyValue());
          count++;
          //test removal of last trasport property
          if (count == 4)
              ws.deleteCurrentTrasportProperty();
      }
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("Accept-Language", 1);
      ws.deleteTrasportProperty("Date");
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
  
      printf("HTTP Header test end\n");
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest3Client.cpp
  
  Index: RpcHttpHeaderTest3Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //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");
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\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;
      int count = 1;
      while (key = ws.getNextTrasportPropertyKey())
      {
          printf("Next trasport key = %s\n", key);
          printf("Next trasport value = %s\n",
                 ws.getCurrentTrasportPropertyValue());
          count++;
          //test removal of last trasport property
          if (count == 3)
              ws.deleteCurrentTrasportProperty();
      }
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("Accept-Language", 1);
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
  
      printf("HTTP Header test end\n");
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest4Client.cpp
  
  Index: RpcHttpHeaderTest4Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //set HTTP headers
      ws.setTransportProperty("Accept-Language", " da, en-gb;q=0.8, en;q=0.7");
      ws.setTransportProperty("Accept-Language", " da, en-gb;q=0.8, en;q=0.7");
      ws.setTransportProperty("Accept-Language", "lang2");
      ws.setTransportProperty("Accept-Language", "lang2");
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\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;
      int count = 1;
      while (key = ws.getNextTrasportPropertyKey())
      {
          printf("Next trasport key = %s\n", key);
          printf("Next trasport value = %s\n",
                 ws.getCurrentTrasportPropertyValue());
          count++;
          //test removal of last trasport property
          if (count == 4)
              ws.deleteCurrentTrasportProperty();
      }
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("Accept-Language", 1);
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
  
      printf("HTTP Header test end\n");
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest5Client.cpp
  
  Index: RpcHttpHeaderTest5Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //set HTTP headers
      ws.setTransportProperty("SOAPAction", "InteropBase#echoString");
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\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;
      int count = 1;
      while (key = ws.getNextTrasportPropertyKey())
      {
          printf("Next trasport key = %s\n", key);
          printf("Next trasport value = %s\n",
                 ws.getCurrentTrasportPropertyValue());
          count++;
      }
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("SOAPAction");
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
  
      printf("HTTP Header test end\n");
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest7Client.cpp
  
  Index: RpcHttpHeaderTest7Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //set HTTP headers
       ws.setTransportProperty("Accept-Language", NULL);
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\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;
      int count = 1;
      while (key = ws.getNextTrasportPropertyKey())
      {
          printf("Next trasport key = %s\n", key);
          printf("Next trasport value = %s\n",
                 ws.getCurrentTrasportPropertyValue());
          count++;
      }
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("Accept-Language");
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
  
      printf("HTTP Header test end\n");
      return 0;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/linux/testcases/client/cpp/RpcHttpHeaderTest8Client.cpp
  
  Index: RpcHttpHeaderTest8Client.cpp
  ===================================================================
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   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
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   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.
   */
  
  /*
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
   */
  
  #include <string>
  using namespace std;
  
  #include "InteropTestPortType.h"
  #include <axis/server/AxisException.h>
  
  #define ARRAYSIZE 2
  
  int
  main(int argc, char *argv[])
  {
      int x;
      char buffer1[100];
      char endpoint[256];
      const char *server = "localhost";
      const char *port = "80";
      //sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      //endpoint for Axis CPP sample
      sprintf(endpoint, "http://%s:%s/axis/base", server, port);
      /*Set for HTTP transport */
      InteropTestPortType ws(endpoint, APTHTTP);
  
      //set HTTP headers
       ws.setTransportProperty(NULL, "lang2");
  
      printf("invoking echoString...\n");
      //testing echoString 
      try {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
  	printf("successful\n");
      else
  	printf("failed\n");
      }
      catch(AxisException& e) 
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\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;
      int count = 1;
      while (key = ws.getNextTrasportPropertyKey())
      {
          printf("Next trasport key = %s\n", key);
          printf("Next trasport value = %s\n",
                 ws.getCurrentTrasportPropertyValue());
          count++;
      }
  
      //test removing HTTP headers
      ws.deleteTrasportProperty("Accept-Language");
  
      //now the request should not have these removed headers
      try
      {
      if (0 == strcmp(ws.echoString("hello world"), "hello world"))
          printf("successful\n");
      else
          printf("failed\n");
      }
      catch(AxisException& e)
      {
          printf("%s\n", e.what());
      }
      catch(...)
      {
          printf("Unknown exception\n");
      }
  
  
      printf("HTTP Header test end\n");
      return 0;
  }