📄 wsaapi.h
字号:
/*wsaapi.hWS-Addressing plugingSOAP XML Web services toolsCopyright (C) 2000-2006, Robert van Engelen, Genivia Inc., All Rights Reserved.This part of the software is released under one of the following licenses:GPL, the gSOAP public license, or Genivia's license for commercial use.--------------------------------------------------------------------------------gSOAP public license.The contents of this file are subject to the gSOAP Public License Version 1.3(the "License"); you may not use this file except in compliance with theLicense. You may obtain a copy of the License athttp://www.cs.fsu.edu/~engelen/soaplicense.htmlSoftware distributed under the License is distributed on an "AS IS" basis,WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Licensefor the specific language governing rights and limitations under the License.The Initial Developer of the Original Code is Robert A. van Engelen.Copyright (C) 2000-2006, Robert van Engelen, Genivia Inc., All Rights Reserved.--------------------------------------------------------------------------------GPL license.This program is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation; either version 2 of the License, or (at your option) any laterversion.This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along withthis program; if not, write to the Free Software Foundation, Inc., 59 TemplePlace, Suite 330, Boston, MA 02111-1307 USAAuthor contact information:engelen@genivia.com / engelen@acm.org--------------------------------------------------------------------------------A commercial use license is available from Genivia, Inc., contact@genivia.com--------------------------------------------------------------------------------*/#include "soapH.h"/** plugin identification for plugin registry */#define SOAP_WSA_ID "SOAP-WSA-1.2"/** plugin identification for plugin registry */extern const char soap_wsa_id[];#if defined(SOAP_WSA_2003)# define SOAP_WSA(member) wsa3__##member# define SOAP_WSA_(prefix,member) prefix##_wsa3__##member# define SOAP_WSA__(prefix,member) prefix##wsa3__##member#elif defined(SOAP_WSA_2004)# define SOAP_WSA(member) wsa4__##member# define SOAP_WSA_(prefix,member) prefix##_wsa4__##member# define SOAP_WSA__(prefix,member) prefix##wsa4__##member#elif defined(SOAP_WSA_2005)# define SOAP_WSA(member) wsa5__##member# define SOAP_WSA_(prefix,member) prefix##_wsa5__##member# define SOAP_WSA__(prefix,member) prefix##wsa5__##member#else# define SOAP_WSA(member) wsa__##member# define SOAP_WSA_(prefix,member) prefix##_wsa__##member# define SOAP_WSA__(prefix,member) prefix##wsa__##member#endif/**@struct soap_wsa_data@brief plugin data to override callbacks*/struct soap_wsa_data{ /** fheader callback is invoked immediately after parsing a SOAP Header */ int (*fheader)(struct soap*); /** fseterror callback is used to inspect and change gSOAP error codes */ void (*fseterror)(struct soap*, const char**, const char**); /** fresponse callback is used to change a HTTP response into a HTTP POST */ int (*fresponse)(struct soap*, int, size_t);};int soap_wsa(struct soap *soap, struct soap_plugin *p, void *arg);int soap_wsa_request(struct soap *soap, const char *id, const char *to, const char *action);int soap_wsa_add_From(struct soap *soap, const char *endpoint);int soap_wsa_add_NoReply(struct soap *soap);int soap_wsa_add_ReplyTo(struct soap *soap, const char *endpoint);int soap_wsa_add_FaultTo(struct soap *soap, const char *endpoint);int soap_wsa_check(struct soap *soap);int soap_wsa_reply(struct soap *soap, const char *id, const char *action);int soap_wsa_sender_fault_subcode(struct soap *soap, const char *faultsubcode, const char *faultstring, const char *faultdetail);int soap_wsa_receiver_fault_subcode(struct soap *soap, const char *faultsubcode, const char *faultstring, const char *faultdetail);int soap_wsa_sender_fault(struct soap *soap, const char *faultstring, const char *faultdetail);int soap_wsa_receiver_fault(struct soap *soap, const char *faultstring, const char *faultdetail);#if defined(SOAP_WSA_2005)int soap_wsa_check_fault(struct soap *soap, SOAP_WSA(FaultCodesType) *fault, char **info);int soap_wsa_error(struct soap *soap, SOAP_WSA(FaultCodesType) fault, const char *info);#elif defined(SOAP_WSA_2003)int soap_wsa_check_fault(struct soap *soap, char **fault);int soap_wsa_error(struct soap *soap, const char *fault);#elseint soap_wsa_check_fault(struct soap *soap, SOAP_WSA(FaultSubcodeValues) *fault);int soap_wsa_error(struct soap *soap, SOAP_WSA(FaultSubcodeValues) fault);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -