// IsagMmsServiceEx.h: interface for the IsagMmsServiceEx class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_IsagMmsServiceEx_H__73679174_AFA0_4F0B_B3ED_7612302799F8__INCLUDED_) #define AFX_IsagMmsServiceEx_H__73679174_AFA0_4F0B_B3ED_7612302799F8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "..\GDDX_Isag_Mms\ISAGMMSMessageNotificationBindingService.h" namespace ISAGMMS { class IsagMmsServiceEx : public MessageNotificationBindingService { public: typedef struct _SQL_Pool { BOOL bUse; long lRandID; CAdoConnection adoConnection; //CComPtr spDoc; DWORD dwBeginUse; DWORD dwEndUse; }SQL_Pool; public: HANDLE m_hThread; BOOL m_bStart; BOOL m_bCopy; //是否复制的一部分 CDialog * m_pDlg; CString m_strSQL_IP; CString m_strSQL_User; CString m_strSQL_Passwd; CString m_strSQL_DB; CString m_strSQL_Provider; SQL_Pool * m_pSQL; long m_lSQLCount; CRITICAL_SECTION * m_Critical; public: long Web_Exit(); void SetSQLParam(CDialog * pDlg,CString strIP,CString strUser,CString strPasswd,CString strDB,CString strProvider); BOOL ConnectSQLServer(SQL_Pool * pSql); SQL_Pool * GetBankSQL(); static DWORD WINAPI Process_Req(LPVOID lpParam); static UINT Process_AcceptT(LPVOID sParam); long Web_Init(TCHAR * strIP,long lPort); virtual IsagMmsServiceEx *copy2(); IsagMmsServiceEx(); virtual ~IsagMmsServiceEx(); static int Web_Get(struct soap* soap); static int Web_post(struct soap *soap, const char *endpoint, const char *host, int port,const char *path, const char *action, size_t count); static void GetCurrentPath(TCHAR *pPath); /// Web service operation 'notifyMessageReception' (return error code or SOAP_OK) virtual int notifyMessageReception(ns2__notifyMessageReception *ns2__notifyMessageReception_, ns2__notifyMessageReceptionResponse *ns2__notifyMessageReceptionResponse_); /// Web service operation 'notifyMessageDeliveryReceipt' (return error code or SOAP_OK) virtual int notifyMessageDeliveryReceipt(ns2__notifyMessageDeliveryReceipt *ns2__notifyMessageDeliveryReceipt_, ns2__notifyMessageDeliveryReceiptResponse *ns2__notifyMessageDeliveryReceiptResponse_); }; }; #endif // !defined(AFX_IsagMmsServiceEx_H__73679174_AFA0_4F0B_B3ED_7612302799F8__INCLUDED_)