00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 #if !defined(_STUB_H____OF_AXIS_INCLUDED_)
00065 #define _STUB_H____OF_AXIS_INCLUDED_
00066
00067 #include <axis/client/Call.h>
00068 #include <vector>
00069
00070 class STORAGE_CLASS_INFO Stub
00071 {
00072 public:
00079 Stub (const char *pcEndPointURI);
00080
00084 virtual ~Stub ();
00085
00093 void AXISCALL setEndPoint(char *pcEndPointURI);
00094
00117 void AXISCALL setTransportProperty (const char *pcKey, const char *pcValue);
00118
00128 char* getFirstTrasportPropertyKey();
00129
00142 char* getNextTrasportPropertyKey();
00143
00160 char* getCurrentTrasportPropertyKey();
00161
00180 char* getCurrentTrasportPropertyValue();
00181
00186 void deleteCurrentTrasportProperty();
00187
00206 void deleteTrasportProperty(char* pcKey, unsigned int uiOccurance = 1);
00207
00268 IHeaderBlock * AXISCALL createSOAPHeaderBlock (AxisChar * pachLocalName,
00269 AxisChar * pachPrefix,
00270 AxisChar * pachUri);
00271
00281 IHeaderBlock* getFirstSOAPHeaderBlock();
00282
00295 IHeaderBlock* getNextSOAPHeaderBlock();
00296
00314 IHeaderBlock* getCurrentSOAPHeaderBlock();
00315
00320 void deleteCurrentSOAPHeaderBlock();
00321
00341 void deleteSOAPHeaderBlock(IHeaderBlock* pHeaderBlock);
00342
00349 void setProxy(const char* pcProxyHost, unsigned int uiProxyPort);
00350
00358 void setSOAPMethodAttribute(const AxisChar *pLocalname, const AxisChar *pPrefix, const AxisChar *pValue);
00359
00368 void setSOAPMethodAttribute(const AxisChar *pLocalname, const AxisChar *pPrefix, const AxisChar* pUri, const AxisChar *pValue);
00369
00379 Attribute* getFirstSOAPMethodAttribute();
00380
00393 Attribute* getNextSOAPMethodAttribute();
00394
00412 Attribute* getCurrentSOAPMethodAttribute();
00413
00418 void deleteCurrentSOAPMethodAttribute();
00419
00439 void deleteSOAPMethodAttribute(Attribute* pAttribute);
00440
00449 void setTransportTimeout(const long lSeconds);
00453 int getStatus();
00454 protected:
00461 void applyUserPreferences();
00462
00467 void setTransportProperties();
00468
00473 void setSOAPHeaders();
00474
00479 void setSOAPMethodAttributes();
00480
00485 void setTransportTimeout();
00486
00491 Call *m_pCall;
00492
00496 vector < char *>m_vKeys;
00497
00501 vector <char*>::iterator m_viCurrentKey;
00502
00506 vector < char *>m_vValues;
00507
00511 vector <char*>::iterator m_viCurrentValue;
00512
00516 vector < IHeaderBlock * >m_vSOAPHeaderBlocks;
00517
00521 vector <IHeaderBlock *>::iterator m_viCurrentSOAPHeaderBlock;
00522
00526 vector <Attribute*> m_vSOAPMethodAttributes;
00527
00531 vector <Attribute*>::iterator m_viCurrentSOAPMethodAttribute;
00532
00536 long m_lTimeoutSeconds;
00537
00538 };
00539
00540 #endif