📄 mtom-test.h
字号:
/*mtom-test.hThis application includes a MIME test client and server. As a clientapplication, it fires four different base64 or MIME attachments to the server.As a server, it will respond to the messages by converting base64 into MIMEattachments and vice versa.Usage (server):mtom-test <port>Usage (client):mtom-test http://localhost:<port> "<message1>" "<message2>" "<message3>" ...--------------------------------------------------------------------------------gSOAP XML Web services toolsCopyright (C) 2000-2006, Robert van Engelen, Genivia, Inc. All Rights Reserved.This software is released under one of the following two licenses:GPL or Genivia's license for commercial use.--------------------------------------------------------------------------------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--------------------------------------------------------------------------------*/#import "soap12.h"#import "xop.h"#import "xmime4.h"//gsoap m service name: mtom_test//gsoap m service namespace: http://www.genivia.com/wsdl/mtom_test.wsdl//gsoap x schema namespace: http://www.genivia.com/schemas/mtom_test.xsd//gsoap x schema elementForm: qualifiedstruct xsd__base64Binary{ unsigned char *__ptr; int __size;};//gsoap x schema type-documentation: DataType a union of an MIME attachment or a base64 binary data typestruct x__DataType{ int __union; union x__data { _xop__Include xop__Include; struct xsd__base64Binary base64; } choice; @char *xmime4__contentType;};//gsoap x schema type-documentation: WrapperType wraps a sequence of data elements with MIME attachments or base64 binary datastruct x__WrapperType{ int __size; struct x__DataType *Data;};/* m:EchoTestSingle has a single in/out attachment of text/xml *///gsoap m service method-input-mime-type: EchoTestSingle text/xml//gsoap m service method-output-mime-type: EchoTestSingle text/xml//gsoap m service method-documentation: EchoTestSingle echo a single MIME attachment or base64 binary data elementint m__EchoTestSingle( struct x__DataType *x__Data, struct m__EchoTestSingleResponse { struct x__DataType *x__Data; }*);/* m:EchoTestSingle has at least two in/out attachments of any MIME type *///gsoap m service method-mime-type: EchoTestMultiple */*//gsoap m service method-mime-type: EchoTestMultiple */*//gsoap m service method-documentation: EchoTestMultiple echo a sequence of MIME attachments or base64 binary data elementsint m__EchoTestMultiple( struct x__WrapperType *x__EchoTest, struct m__EchoTestMultipleResponse { struct x__WrapperType *x__EchoTest; }*);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -