axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/samples/server/rpcfault MathOpsWrapper.cpp SOAPStructFault.cpp
Date Wed, 26 May 2004 06:12:08 GMT
damitha     2004/05/25 23:12:08

  Modified:    c/samples/server/rpcfault MathOpsWrapper.cpp
                        SOAPStructFault.cpp
  Log:
  
  
  Revision  Changes    Path
  1.7       +7 -7      ws-axis/c/samples/server/rpcfault/MathOpsWrapper.cpp
  
  Index: MathOpsWrapper.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/rpcfault/MathOpsWrapper.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MathOpsWrapper.cpp	25 May 2004 08:17:30 -0000	1.6
  +++ MathOpsWrapper.cpp	26 May 2004 06:12:08 -0000	1.7
  @@ -87,14 +87,14 @@
           }
           catch(AxisDivByZeroException& e)
           {
  -            pIWSSZ->createSoapFault("SOAPStructFault", "http://soapinterop.org/");
  -            SOAPStructFault* objFault = (SOAPStructFault*)pIWSDZ->
  -                getCmplxObject((void*)Axis_DeSerialize_SOAPStructFault,
  -                (void*)Axis_Create_SOAPStructFault, (void*)Axis_Delete_SOAPStructFault,
  -                "faultstruct", Axis_URI_SOAPStructFault);
  +            pIWSSZ->createSoapFault("SOAPStructFault", "http://soapinterop.org/"); 
  +            SOAPStructFault* pObjFault = new SOAPStructFault();
  +            pObjFault->varString = "Division by zero exception";
  +            pObjFault->varInt = 1;
  +            pObjFault->varFloat = 10.52;
   
  -            if(objFault)
  -                pIWSSZ->addFaultDetail(objFault, (void*)Axis_Serialize_SOAPStructFault,
  +            if(pObjFault)
  +                pIWSSZ->addFaultDetail(pObjFault, (void*)Axis_Serialize_SOAPStructFault,
                       (void*)Axis_Delete_SOAPStructFault, "DivByZeroException", 
                       Axis_URI_SOAPStructFault);
   
  
  
  
  1.3       +1 -7      ws-axis/c/samples/server/rpcfault/SOAPStructFault.cpp
  
  Index: SOAPStructFault.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/rpcfault/SOAPStructFault.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SOAPStructFault.cpp	24 May 2004 05:44:19 -0000	1.2
  +++ SOAPStructFault.cpp	26 May 2004 06:12:08 -0000	1.3
  @@ -41,13 +41,7 @@
   	param->varString = pIWSDZ->getElementAsString("varString",0);
   	param->varInt = pIWSDZ->getElementAsInt("varInt",0);
   	param->varFloat = pIWSDZ->getElementAsFloat("varFloat",0);
  -	if(AXIS_FAIL == pIWSDZ->getStatus())
  -        {
  -            param->varString = "Division by zero exception";
  -            param->varInt = 1;
  -            param->varFloat = 10.52;
  -            return AXIS_SUCCESS;
  -        }
  +
   	return pIWSDZ->getStatus();
   }
   
  
  
  

Mime
View raw message