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 sa...@apache.org on 2003/09/23 13:31:10 UTC

cvs commit: ws-axis/c/src/client Transporter.c

sanjaya     2003/09/23 04:31:10

  Modified:    c/src/client Transporter.c
  Log:
  trivial changes
  
  Revision  Changes    Path
  1.3       +11 -9     ws-axis/c/src/client/Transporter.c
  
  Index: Transporter.c
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/Transporter.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Transporter.c	19 Sep 2003 14:53:50 -0000	1.2
  +++ Transporter.c	23 Sep 2003 11:31:10 -0000	1.3
  @@ -3,36 +3,38 @@
   #include <iostream.h>
   #include "../common/Packet.h"
   
  -//char * resp = "<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\"><SOAP-ENV:Body><ns1:AddResponse xmlns:ns1=\"http://www.opensource.lk/CPPService\"><AddReturn xsi:type=\"xsd:int\">7</AddReturn></ns1:AddResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>";
  -//int len = 354;
  -
  -
  -char * resp = "<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\"><SOAP-ENV:Body><ns1:AddPointResponse xmlns:ns1=\"http://www.opensource.lk/CPPService\"><Point xsi:type=\"ns2:Point\" xmlns:ns2=\"http://www.opensource.lk/Point\"><x xsi:type=\"xsd:int\">444</x><y xsi:type=\"xsd:int\">999</y></Point></ns1:AddPointResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>";
  -int len = 500;
  +//Add two integers
  +char * resp = "<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\"><SOAP-ENV:Body><ns1:AddResponse xmlns:ns1=\"http://www.opensource.lk/CPPService\"><AddReturn xsi:type=\"xsd:int\">7</AddReturn></ns1:AddResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>";
  +int len = 354;
  +
  +//Add two points
  +//char * resp = "<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\"><SOAP-ENV:Body><ns1:AddPointResponse xmlns:ns1=\"http://www.opensource.lk/CPPService\"><Point xsi:type=\"ns2:Point\" xmlns:ns2=\"http://www.opensource.lk/Point\"><x xsi:type=\"xsd:int\">444</x><y xsi:type=\"xsd:int\">999</y></Point></ns1:AddPointResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>";
  +//int len = 500;
   
   
   int send_response_bytes(const char* res, const void* opstream)
   {
  -	printf("%s", res);
  +	printf("%s\n", res);
   	return 0;
   }
   
   int get_request_bytes(char* req, int reqsize, int* retsize, const void* ipstream)
   {
  -	printf("%s","inside get request bytes");
   	strcpy(req, resp);
  +	printf("%s\n\n", req);
   	*retsize = len;
   	return 0;
   }
   
   int send_transport_information(Ax_soapstream *str)
   {
  -	printf("%s", "Sending transport info");
  +	printf("%s\n", "Sending transport info");
   	return 0;
   }
   
   int receive_transport_information(Ax_soapstream *str)
   {
  +	printf("%s\n", "Receiving transport info");
   	return 0;
   }