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 ra...@apache.org on 2005/04/25 15:14:58 UTC
cvs commit: ws-axis/c/samples/server/mime pt1Wrapper.hpp pt1Wrapper.cpp pt1Service.cpp pt1.hpp pt1.cpp AxisServiceException.hpp AxisServiceException.cpp
rangika 2005/04/25 06:14:58
Modified: c/samples/server/mime pt1Wrapper.hpp pt1Wrapper.cpp
pt1Service.cpp pt1.hpp pt1.cpp
AxisServiceException.hpp AxisServiceException.cpp
Log:
Modified the Attachment web service.
Revision Changes Path
1.3 +0 -14 ws-axis/c/samples/server/mime/pt1Wrapper.hpp
Index: pt1Wrapper.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/pt1Wrapper.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pt1Wrapper.hpp 23 Mar 2005 15:44:57 -0000 1.2
+++ pt1Wrapper.hpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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 Web Service Wrapper declarations
1.3 +14 -16 ws-axis/c/samples/server/mime/pt1Wrapper.cpp
Index: pt1Wrapper.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/pt1Wrapper.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pt1Wrapper.cpp 23 Mar 2005 15:44:57 -0000 1.2
+++ pt1Wrapper.cpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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 Web Service Wrapper implementations
@@ -81,16 +67,28 @@
/* check whether we have got correct message */
if (AXIS_SUCCESS != pIWSDZ->checkMessageBody("EchoAttachment", "urn:EchoAttachmentsService")) return AXIS_FAIL;
pIWSSZ->createSoapMethod("EchoAttachmentResponse", "urn:EchoAttachmentsService");
- xsd__string v0 = pIWSDZ->getElementAsString("id",0);
+
+
+ xsd__string v0 = pIWSDZ->getElementAsString("id1",0);
+ xsd__string v1 = pIWSDZ->getElementAsString("id2",0);
+
ISoapAttachment* objSoapAttach = pIWSDZ->getAttachment(v0);
+ ISoapAttachment* objSoapAttach2 = pIWSDZ->getAttachment(v1);
+ //ISoapAttachment** objSoapAttach3 = pIWSDZ->getAllAttachments();
if (AXIS_SUCCESS != (nStatus = pIWSDZ->getStatus())) return nStatus;
try
{
ISoapAttachment* ret = pWs->EchoAttachment(objSoapAttach);
+ ISoapAttachment* ret2 = pWs->EchoAttachment(objSoapAttach2);
+ // ISoapAttachment** ret3 = pWs->EchoAttachments(objSoapAttach3);
pIWSSZ->addAttachment(v0, ret);
+ pIWSSZ->addAttachment(v1, ret2);
+ // pIWSSZ->addAttachments(ret3);
+
return pIWSSZ->addOutputParam("EchoAttachmentReturn", (void*)&v0, XSD_STRING);
+ // return pIWSSZ->addOutputParam("EchoAttachmentReturn", (void*)&ret3, XSD_STRING);
}
catch(...){
}
-}
+}
\ No newline at end of file
1.3 +0 -14 ws-axis/c/samples/server/mime/pt1Service.cpp
Index: pt1Service.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/pt1Service.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pt1Service.cpp 23 Mar 2005 15:44:57 -0000 1.2
+++ pt1Service.cpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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 the two export functions of the Web service Dynamic Library
1.3 +1 -16 ws-axis/c/samples/server/mime/pt1.hpp
Index: pt1.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/pt1.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pt1.hpp 23 Mar 2005 15:44:57 -0000 1.2
+++ pt1.hpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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 is the Service Class genarated by the tool WSDL2Ws
* pt1.hpp: interface for the pt1class.
@@ -35,10 +21,9 @@
void init();
void fini();
ISoapAttachment* EchoAttachment(ISoapAttachment* objSoapAttach);
-
//xsd__base64Binary EchoAttachment(xsd__base64Binary Value0);
+ ISoapAttachment** EchoAttachments(ISoapAttachment** objSoapAttach);
};
-
#endif /* !defined(__PT1_SERVERSKELETON_H__INCLUDED_)*/
1.3 +5 -14 ws-axis/c/samples/server/mime/pt1.cpp
Index: pt1.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/pt1.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pt1.cpp 23 Mar 2005 15:44:57 -0000 1.2
+++ pt1.cpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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
@@ -56,3 +42,8 @@
{
return objSoapAttach;
}
+
+ISoapAttachment** pt1::EchoAttachments(ISoapAttachment** objSoapAttach)
+{
+ return objSoapAttach;
+}
\ No newline at end of file
1.3 +0 -14 ws-axis/c/samples/server/mime/AxisServiceException.hpp
Index: AxisServiceException.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/AxisServiceException.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AxisServiceException.hpp 23 Mar 2005 15:44:57 -0000 1.2
+++ AxisServiceException.hpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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 an Exception class of the web service.
1.3 +0 -14 ws-axis/c/samples/server/mime/AxisServiceException.cpp
Index: AxisServiceException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/server/mime/AxisServiceException.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AxisServiceException.cpp 23 Mar 2005 15:44:57 -0000 1.2
+++ AxisServiceException.cpp 25 Apr 2005 13:14:58 -0000 1.3
@@ -1,17 +1,3 @@
-// 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 implementations of the Attachment Exception class of the web service.