1 /* @include ajsoap ************************************************************ 2 ** 3 ** support for webservices access using Axis2C library 4 ** 5 ** @author Copyright (c) 2009 Mahmut Uludag 6 ** @version $Revision: 1.3 $ 7 ** @modified $Date: 2012/07/15 20:24:49 $ by $Author: rice $ 8 ** @@ 9 ** 10 ** This library is free software; you can redistribute it and/or 11 ** modify it under the terms of the GNU Lesser General Public 12 ** License as published by the Free Software Foundation; either 13 ** version 2.1 of the License, or (at your option) any later version. 14 ** 15 ** This library is distributed in the hope that it will be useful, 16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 ** Lesser General Public License for more details. 19 ** 20 ** You should have received a copy of the GNU Lesser General Public 21 ** License along with this library; if not, write to the Free Software 22 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 ** MA 02110-1301, USA. 24 ** 25 ******************************************************************************/ 26 27 #ifndef AJSOAP_H 28 #define AJSOAP_H 29 30 /* ========================================================================= */ 31 /* ============================= include files ============================= */ 32 /* ========================================================================= */ 33 34 #include "ajdefine.h" 35 36 #ifdef HAVE_AXIS2C 37 #include <axiom.h> 38 #include <axis2_util.h> 39 #include <axiom_soap.h> 40 #include <axis2_client.h> 41 #include <axutil_qname.h> 42 43 AJ_BEGIN_DECLS 44 45 46 47 48 49 /* ========================================================================= */ 50 /* =============================== constants =============================== */ 51 /* ========================================================================= */ 52 53 54 55 56 /* 57 * default end-points and name-spaces for EBI web-services 58 */ 59 60 #define WSDBFETCH_NS "http://www.ebi.ac.uk/ws/services/WSDbfetchDoclit" 61 #define WSDBFETCH_EP "http://www.ebi.ac.uk/ws/services/WSDbfetchDoclit" 62 #define EBEYE_NS "http://www.ebi.ac.uk/EBISearchService" 63 #define EBEYE_EP "http://www.ebi.ac.uk/ebisearch/service.ebi" 64 65 #define UNRECOGNISEDXML "cannot parse webservices results" 66 67 68 69 70 71 /* ========================================================================= */ 72 /* ============================== public data ============================== */ 73 /* ========================================================================= */ 74 75 76 77 78 /* ========================================================================= */ 79 /* =========================== public functions ============================ */ 80 /* ========================================================================= */ 81 82 83 84 /* 85 ** Prototype definitions 86 */ 87 88 axiom_node_t* ajSoapAxis2Call(axis2_svc_client_t *client, 89 const axutil_env_t *env, 90 axiom_node_t *payload); 91 92 AjBool ajSoapAxis2Error(axiom_node_t *fault, 93 const axutil_env_t *env); 94 95 96 axis2_svc_client_t* ajSoapAxis2GetClient(const axutil_env_t *env, 97 const axis2_char_t *address); 98 99 axutil_env_t* ajSoapAxis2GetEnv(void); 100 101 /* 102 ** End of prototype definitions 103 */ 104 105 AJ_END_DECLS 106 107 #endif /* HAVE_AXIS2C */ 108 #endif /* !AJSOAP_H */ 109 110