axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan...@apache.org
Subject cvs commit: ws-axis/c/src/common AxisTime.cpp
Date Fri, 24 Oct 2003 12:14:59 GMT
susantha    2003/10/24 05:14:59

  Modified:    c/include/axis/common AxisTime.h
               c/src/client/samples/interoptests/base InteropBaseClient.cpp
               c/src/client/samples/interoptests/groupB
                        InteropTestPortTypeB.cpp
               c/src/common AxisTime.cpp
  Log:
  removed long long type since its not supported in win32 and also its not ANSI C++
  
  Revision  Changes    Path
  1.5       +4 -4      ws-axis/c/include/axis/common/AxisTime.h
  
  Index: AxisTime.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/include/axis/common/AxisTime.h,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AxisTime.h	24 Oct 2003 08:29:18 -0000	1.4
  +++ AxisTime.h	24 Oct 2003 12:14:59 -0000	1.5
  @@ -70,7 +70,7 @@
   
   typedef struct
   {
  -    long long years;
  +    long years;
       int months;
       int days;
       int hours;
  @@ -90,7 +90,7 @@
           void setType(XSDTYPE m_Type);
           AxisString getValue();
           AxisString& serialize(const AxisChar* sName, struct tm tValue, XSDTYPE nType);
  -        AxisString& serialize(const AxisChar* sName, long long lDuration, XSDTYPE nType);
  +        AxisString& serialize(const AxisChar* sName, long lDuration, XSDTYPE nType);
           long getDuration();
           struct tm getDateTime();
           struct tm getDate();
  @@ -120,8 +120,8 @@
           int m_intSecs;
           AxisString strZone;
           uDuration duration;
  -        long long m_longYears;
  -        long long m_Duration;
  +        long m_longYears;
  +        long m_Duration;
           //string strXSDDuration;
           AxisString strXSDDuration;
           AxisString strXSDDate;
  
  
  
  1.4       +1 -1      ws-axis/c/src/client/samples/interoptests/base/InteropBaseClient.cpp
  
  Index: InteropBaseClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/interoptests/base/InteropBaseClient.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InteropBaseClient.cpp	24 Oct 2003 05:37:46 -0000	1.3
  +++ InteropBaseClient.cpp	24 Oct 2003 12:14:59 -0000	1.4
  @@ -72,7 +72,7 @@
   	time(&tim);
   	ws.echoDate(*gmtime(&tim));
   	//testing echo hex binary
  -	ws.echoHexBinary("CCCFFA46552BC7D5A09BC5F23DE9E0FE7862AD45BC87D02FE");
  +	ws.echoHexBinary("CCCFFA46552BC7D5A09BC5F23DE9E0FE7862AD45BC87D02FEE");
   	//testing echo decimal
   	ws.echoDecimal(1234.567890);
   	//testing echo boolean
  
  
  
  1.5       +2 -2      ws-axis/c/src/client/samples/interoptests/groupB/InteropTestPortTypeB.cpp
  
  Index: InteropTestPortTypeB.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/interoptests/groupB/InteropTestPortTypeB.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- InteropTestPortTypeB.cpp	24 Oct 2003 09:13:08 -0000	1.4
  +++ InteropTestPortTypeB.cpp	24 Oct 2003 12:14:59 -0000	1.5
  @@ -31,8 +31,8 @@
   {
   	m_pCall = new Call();
   	m_pCall->SetProtocol(APTHTTP);
  -	m_pCall->SetHeader("SOAPAction", "InteropGroupB");
  -	m_pCall->SetEndpointURI("http://localhost:80/axis/InteropGroupB");
  +	m_pCall->SetHeader("SOAPAction", "http://soapinterop.org/");
  +	m_pCall->SetEndpointURI("http://interop.xmlbus.com:7002/xmlbus/container/InteropTest/GroupBService/GroupBPort");
   }
   
   InteropTestPortTypeB::~InteropTestPortTypeB()
  
  
  
  1.11      +3 -3      ws-axis/c/src/common/AxisTime.cpp
  
  Index: AxisTime.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisTime.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AxisTime.cpp	24 Oct 2003 08:29:19 -0000	1.10
  +++ AxisTime.cpp	24 Oct 2003 12:14:59 -0000	1.11
  @@ -117,13 +117,13 @@
   * Serialize the duration in seconds into a xml duration string
   * of the format PnYnMnDTnHnMnS
   */
  -AxisString& AxisTime::serialize(const AxisChar* sName, long long lDuration, XSDTYPE
nType)
  +AxisString& AxisTime::serialize(const AxisChar* sName, long lDuration, XSDTYPE nType)
   {
   	AxisChar buff[4];
   	strXSDDuration = "P";
   	int x = 365 * 24 * 3600;
   	int intYears = lDuration / x;
  -    long long tempYears = (long long) intYears * x;
  +    long tempYears = intYears * x;
   	//sprintf((char*)buff,"%d", intYears);
   	AxisSprintf(buff, 4, "%d", intYears);
   	strXSDDuration.append(buff);
  @@ -221,7 +221,7 @@
               /*XSD_DURATION is of the format PnYnMnDTnHnMnS*/
               intPos1 = m_sValue.find_first_of("Y");
               strYears = m_sValue.substr(1,intPos1 - 1);
  -            m_longYears = (long long) atoi(strYears.c_str());
  +            m_longYears = atoi(strYears.c_str());
               //m_intYears = wcstol(strYears.c_str(), &endptr, 10);
               duration.years = m_longYears;
               intPos2 = m_sValue.find_first_of("M");
  
  
  

Mime
View raw message