Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 86269 invoked from network); 25 Jan 2005 14:21:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Jan 2005 14:21:54 -0000 Received: (qmail 73935 invoked by uid 500); 25 Jan 2005 14:21:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 73867 invoked by uid 500); 25 Jan 2005 14:21:49 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 73818 invoked by uid 99); 25 Jan 2005 14:21:48 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 25 Jan 2005 06:21:48 -0800 Received: (qmail 86132 invoked by uid 1498); 25 Jan 2005 14:21:46 -0000 Date: 25 Jan 2005 14:21:46 -0000 Message-ID: <20050125142146.86131.qmail@minotaur.apache.org> From: whitlock@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/c/src/cbindings IWrapperSoapSerializerC.cpp X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N whitlock 2005/01/25 06:21:46 Modified: c/tools/org/apache/axis/tools/cbindings cbindinggenerator.conf Added: c/src/cbindings IWrapperSoapSerializerC.cpp Log: Initial version of the C bindings for IWrapperSoapSerializer Revision Changes Path 1.6 +2 -0 ws-axis/c/tools/org/apache/axis/tools/cbindings/cbindinggenerator.conf Index: cbindinggenerator.conf =================================================================== RCS file: /home/cvs/ws-axis/c/tools/org/apache/axis/tools/cbindings/cbindinggenerator.conf,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- cbindinggenerator.conf 25 Jan 2005 11:07:59 -0000 1.5 +++ cbindinggenerator.conf 25 Jan 2005 14:21:46 -0000 1.6 @@ -39,5 +39,7 @@ excludemethod=IMessageData::getService excludemethod=BasicNode::BasicNode excludemethod=IHeaderBlock::IHeaderBlock +excludemethod=IWrapperSoapSerializer::serialize + 1.1 ws-axis/c/src/cbindings/IWrapperSoapSerializerC.cpp Index: IWrapperSoapSerializerC.cpp =================================================================== /* * 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. */ #include AXIS_CPP_NAMESPACE_USE extern "C" { #include #include #include #include #include #include #include AXISC_STORAGE_CLASS_INFO void axiscDestroyIWrapperSoapSerializer(AXISCHANDLE wrapperSoapSerializer) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; delete sz; } AXISC_STORAGE_CLASS_INFO int axiscCreateSoapMethod(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * sLocalName, const AxiscChar * sURI) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->createSoapMethod(sLocalName,sURI); } AXISC_STORAGE_CLASS_INFO int axiscCreateSoapFault(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * sLocalName, const AxiscChar * sURI, const AxiscChar * sFaultCode, const AxiscChar * sFaultString) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->createSoapFault(sLocalName,sURI,sFaultCode,sFaultString); } AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetNamespacePrefixIWrapperSoapSerializer( AXISCHANDLE wrapperSoapSerializer, const AxiscChar * pNamespace) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->getNamespacePrefix(pNamespace); } AXISC_STORAGE_CLASS_INFO void axiscRemoveNamespacePrefix(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * pNamespace) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->removeNamespacePrefix(pNamespace); } AXISC_STORAGE_CLASS_INFO int axiscAddOutputParam(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * pchName, void * pValue, AXISC_XSDTYPE type) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->addOutputParam(pchName,pValue,(XSDTYPE)type); } AXISC_STORAGE_CLASS_INFO int axiscAddOutputCmplxArrayParam(AXISCHANDLE wrapperSoapSerializer, const Axisc_Array * pArray, void * pSZFunct, void * pDelFunct, void * pSizeFunct, const AxiscChar * pName, const AxiscChar * pNamespace) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->addOutputCmplxArrayParam((const Axis_Array*)pArray,pSZFunct,pDelFunct,pSizeFunct,pName,pNamespace); } AXISC_STORAGE_CLASS_INFO int axiscAddOutputBasicArrayParam(AXISCHANDLE wrapperSoapSerializer, const Axisc_Array * pArray, AXISC_XSDTYPE nType, const AxiscChar * pName) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->addOutputBasicArrayParam((const Axis_Array*)pArray,(XSDTYPE)nType,pName); } AXISC_STORAGE_CLASS_INFO int axiscAddOutputCmplxParam(AXISCHANDLE wrapperSoapSerializer, void * pObject, void * pSZFunct, void * pDelFunct, const AxiscChar * pName, const AxiscChar * pNamespace) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->addOutputCmplxParam(pObject,pSZFunct,pDelFunct,pName,pNamespace); } AXISC_STORAGE_CLASS_INFO int axiscAddFaultDetail(AXISCHANDLE wrapperSoapSerializer, void * pObject, void * pSZFunct, void * pDelFunct, const AxiscChar * pName, const AxiscChar * pNamespace) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->addFaultDetail(pObject,pSZFunct,pDelFunct,pName,pNamespace); } AXISC_STORAGE_CLASS_INFO int axiscSerializeCmplxArray(AXISCHANDLE wrapperSoapSerializer, const Axisc_Array * pArray, void * pSZFunct, void * pDelFunct, void * pSizeFunct, const AxiscChar * pName, const AxiscChar * pNamespace) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->serializeCmplxArray((const Axis_Array*)pArray,pSZFunct,pDelFunct,pSizeFunct,pName,pNamespace); } AXISC_STORAGE_CLASS_INFO int axiscSerializeBasicArray(AXISCHANDLE wrapperSoapSerializer, const Axisc_Array * pArray, AXISC_XSDTYPE nType, const AxiscChar * pName) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->serializeBasicArray((const Axis_Array*)pArray,(XSDTYPE)nType,pName); } AXISC_STORAGE_CLASS_INFO int axiscSerializeAsElement(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * sName, void * pValue, AXISC_XSDTYPE type) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->serializeAsElement(sName,pValue,(XSDTYPE)type); } AXISC_STORAGE_CLASS_INFO int axiscSerializeAsAttribute(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * sName, const AxiscChar * pNamespace, void * pValue, AXISC_XSDTYPE type) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->serializeAsAttribute(sName,pNamespace,pValue,(XSDTYPE)type); } AXISC_STORAGE_CLASS_INFO void axiscSerializeStartElementOfType(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * pName, const AxiscChar * pNamespace, const AxiscChar * pPrefix) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->serializeStartElementOfType(pName,pNamespace,pPrefix); } AXISC_STORAGE_CLASS_INFO void axiscSerializeEndElementOfType(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * pName) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->serializeEndElementOfType(pName); } AXISC_STORAGE_CLASS_INFO AXISC_PROVIDERTYPE axiscGetCurrentProviderType(AXISCHANDLE wrapperSoapSerializer) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return (AXISC_PROVIDERTYPE)(sz->getCurrentProviderType()); } AXISC_STORAGE_CLASS_INFO void axiscSetCurrentProviderType(AXISCHANDLE wrapperSoapSerializer, AXISC_PROVIDERTYPE nType) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->setCurrentProviderType((PROVIDERTYPE)nType); } AXISC_STORAGE_CLASS_INFO int axiscAddOutputAnyObject(AXISCHANDLE wrapperSoapSerializer, AxiscAnyType * pAnyObject) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->addOutputAnyObject((AnyType*)pAnyObject); } AXISC_STORAGE_CLASS_INFO int axiscSerializeAnyObject(AXISCHANDLE wrapperSoapSerializer, AxiscAnyType * pAnyObject) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->serializeAnyObject((AnyType*)pAnyObject); } AXISC_STORAGE_CLASS_INFO int axiscSerializeAsChardata(AXISCHANDLE wrapperSoapSerializer, void * pValue, AXISC_XSDTYPE type) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return sz->serializeAsChardata(pValue,(XSDTYPE)type); } AXISC_STORAGE_CLASS_INFO void axiscAddAttachment(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * achId, AXISCHANDLE objAttach) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->addAttachment(achId,(ISoapAttachment*)objAttach); } AXISC_STORAGE_CLASS_INFO void axiscAddAttachmentBody(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * achId, xsdc__base64Binary * pAttchBody) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->addAttachmentBody(achId,(xsd__base64Binary*)pAttchBody); } AXISC_STORAGE_CLASS_INFO void axiscAddAttachmentHeader(AXISCHANDLE wrapperSoapSerializer, const AxiscChar * achId, const AxiscChar * achHeaderName, const AxiscChar * achHeaderValue) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; sz->addAttachmentHeader(achId,achHeaderName,achHeaderValue); } AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateSoapAttachementSoapAttachment(AXISCHANDLE wrapperSoapSerializer) { IWrapperSoapSerializer *sz = (IWrapperSoapSerializer*)wrapperSoapSerializer; return (AXISCHANDLE)(sz->createSoapAttachement()); } }