00001 /* 00002 * Copyright 2003-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #if !defined(_IHANDLERSOAPSERIALIZER_H____OF_AXIS_INCLUDED_) 00018 #define _IHANDLERSOAPSERIALIZER_H____OF_AXIS_INCLUDED_ 00019 00020 #include "IWrapperSoapSerializer.hpp" 00021 #include "SoapEnvVersions.hpp" 00022 00023 AXIS_CPP_NAMESPACE_START 00024 00025 class IHeaderBlock; 00049 class IHandlerSoapSerializer : public IWrapperSoapSerializer 00050 00051 { 00052 public: 00053 virtual ~IHandlerSoapSerializer() {}; 00054 00061 virtual IHeaderBlock* createHeaderBlock()=0; 00062 00072 virtual IHeaderBlock* createHeaderBlock(AxisChar *pachLocalName, 00073 AxisChar *pachUri)=0; 00074 00081 virtual int AXISCALL addHeaderBlock(IHeaderBlock* pBlk)=0; 00082 00088 virtual int setSoapVersion(SOAP_VERSION eSOAP_VERSION)=0; 00089 00096 /* 00097 * TO DO: Have to remove this method from this api. Logged this msg on 00098 * 13Jan2005. 00099 virtual IHeaderBlock* getHeaderBlock() = 0; 00100 */ 00101 00109 virtual IHeaderBlock* getHeaderBlock(const AxisChar *pcName, 00110 const AxisChar *pcNamespace) = 0; 00115 virtual IHeaderBlock* getFirstHeaderBlock()=0; 00116 00121 virtual IHeaderBlock* getNextHeaderBlock()=0; 00122 00129 virtual IHeaderBlock* getCurrentHeaderBlock()=0; 00130 00131 /* 00132 * A handler may get the entire soap body and encrypt/compress 00133 * it and encode to either base64Binary or hexBinary before 00134 * sending to the transport. So any handler in the response message 00135 * path may use following functions to get the entire soap 00136 * body / set encrypted and/or compressed and then encoded soap body 00137 * back to the Serializer 00138 */ 00139 00140 virtual int AXISCALL setBodyAsHexBinary(xsd__hexBinary body)=0; 00141 virtual int AXISCALL setBodyAsBase64Binary(xsd__base64Binary body)=0; 00142 virtual const AxisChar* AXISCALL getBodyAsString()=0; 00143 00147 virtual void addNamespaceToEnvelope(AxisChar *pachNamespaceURI, AxisChar* pachPrefix)=0; 00148 }; 00149 00150 AXIS_CPP_NAMESPACE_END 00151 00152 #endif 00153