axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/samples/server/rpcfault MathOps.cpp
Date Fri, 08 Apr 2005 08:09:27 GMT
samisa      2005/04/08 01:09:27

  Modified:    c/samples server.wsdd.win32
               c/samples/server/doclitfault MathOps.cpp
               c/samples/server/ref RefTestPortType.cpp
               c/samples/server/rpcfault MathOps.cpp
  Added:       c/samples readme.txt
  Log:
  More improvements to samples. Made these samples work with the latest source
  
  Revision  Changes    Path
  1.2       +14 -0     ws-axis/c/samples/server.wsdd.win32
  
  Index: server.wsdd.win32
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server.wsdd.win32,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- server.wsdd.win32	8 Apr 2005 04:19:51 -0000	1.1
  +++ server.wsdd.win32	8 Apr 2005 08:09:27 -0000	1.2
  @@ -43,5 +43,19 @@
   		<parameter name="allowedMethods" value="getInput "/>
   	</service>
   
  +	<service name="doclitfault" provider="CPP:DOCUMENT" description="This is an Axis C++
web service for demonstrate fault value handling in DOCUMENT style service.">
  +		<parameter name="className" value="C:\obj\samples\doclitfault.dll"/>
  +		<parameter name="allowedMethods" value="div "/>
  +	</service>
  +
  +	<service name="rpcfault" provider="CPP:RPC" description="This is an Axis C++ web service
for demonstrate fault value handling in RPC style service">
  +		<parameter name="className" value="C:\obj\samples\rpcfault.dll"/>
  +		<parameter name="allowedMethods" value="div "/>
  +	</service>
  +
  +	<service name="ref" provider="CPP:RPC" description="This is an Axis C++ web service
for demonstrate Value Pass by Reference. This is a RPC style service. ">
  +		<parameter name="className" value="C:\obj\samples\ref.dll"/>
  +		<parameter name="allowedMethods" value="echoInt "/>
  +	</service>
   
   </deployment>
  
  
  
  1.1                  ws-axis/c/samples/readme.txt
  
  Index: readme.txt
  ===================================================================
  
  To learn how to build and run samples, please read SamplesGuide.html in ws-axis/c/docs folder.
  
  
  1.6       +37 -23    ws-axis/c/samples/server/doclitfault/MathOps.cpp
  
  Index: MathOps.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/doclitfault/MathOps.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MathOps.cpp	6 Jul 2004 08:34:41 -0000	1.5
  +++ MathOps.cpp	8 Apr 2005 08:09:27 -0000	1.6
  @@ -1,28 +1,24 @@
   /*
  - *   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.
  - *
  - *
  - *   @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
  + * Copyright 2003-2004 The Apache Software Foundation.
  +
    *
  - */
  -/*
  - *This is the Service implementation CPP file genarated by theWSDL2Ws.
  - *		MathOps.cpp: implemtation for the MathOps.
  + * 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 file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains definitions of the web service
    */
  -#include "MathOps.h"
  +
  +#include "MathOps.hpp"
   
   
   MathOps::MathOps()
  @@ -33,9 +29,27 @@
   {
   }
   
  -int MathOps::div(int Value0, int Value1)
  +/* This function is called by the AxisEngine when something went wrong
  + with the current web service request processing. Appropriate actions should
  + be taken here.*/
  +void MathOps::onFault()
  +{
  +}
  +/* This function is called by the AxisEngine when this web service
  + library is first loaded. So here we can initialize any global/static
  + data structures of this web service or open database connections */
  +void MathOps::init()
  +{
  +}
  +/* This function is called by the AxisEngine when this web service
  + library is unloaded. So we can deallocate any global/static data structures
  + and close database connections etc here. */
  +void MathOps::fini()
  +{
  +}
  +xsd__int MathOps::div(xsd__int Value0, xsd__int Value1)  
   {
  -    if (Value1 == 0)
  +	if (Value1 == 0)
       {
            DivByZeroStruct* pObjFault = new DivByZeroStruct();
            if(pObjFault)
  
  
  
  1.3       +1 -15     ws-axis/c/samples/server/ref/RefTestPortType.cpp
  
  Index: RefTestPortType.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/ref/RefTestPortType.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RefTestPortType.cpp	23 Mar 2005 15:44:57 -0000	1.2
  +++ RefTestPortType.cpp	8 Apr 2005 08:09:27 -0000	1.3
  @@ -1,23 +1,9 @@
  -// 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 file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
    * This file contains definitions of the web service
    */
   
  -#include "RefTestPortType.h"
  +#include "RefTestPortType.hpp"
   
   
   RefTestPortType::RefTestPortType()
  
  
  
  1.7       +38 -18    ws-axis/c/samples/server/rpcfault/MathOps.cpp
  
  Index: MathOps.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/rpcfault/MathOps.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MathOps.cpp	6 Jul 2004 08:34:41 -0000	1.6
  +++ MathOps.cpp	8 Apr 2005 08:09:27 -0000	1.7
  @@ -1,23 +1,24 @@
   /*
  - *   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.
  - *
  + * Copyright 2003-2004 The Apache Software Foundation.
  +
    *
  - *   @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
  + * 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 file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains definitions of the web service
    */
  -#include "MathOps.h"
  +
  +#include "MathOps.hpp"
   
   
   MathOps::MathOps()
  @@ -28,9 +29,28 @@
   {
   }
   
  -int MathOps::div(int Value0, int Value1)  
  +/* This function is called by the AxisEngine when something went wrong
  + with the current web service request processing. Appropriate actions should
  + be taken here.*/
  +void MathOps::onFault()
   {
  -    if (Value1 == 0)
  +}
  +/* This function is called by the AxisEngine when this web service
  + library is first loaded. So here we can initialize any global/static
  + data structures of this web service or open database connections */
  +void MathOps::init()
  +{
  +}
  +/* This function is called by the AxisEngine when this web service
  + library is unloaded. So we can deallocate any global/static data structures
  + and close database connections etc here. */
  +void MathOps::fini()
  +{
  +}
  +xsd__int MathOps::div(xsd__int Value0, xsd__int Value1)  
  +{
  +
  +	 if (Value1 == 0)
       {
            DivByZeroStruct* pObjFault = new DivByZeroStruct();
            if(pObjFault)
  
  
  

Mime
View raw message