| /* |
| |
| mtom-test.h |
| |
| This application includes a MTOM test client and server. As a client |
| application, it fires four different base64 or MTOM attachments to the server. |
| As a server, it will respond to the messages by converting base64 into MTOM |
| attachments and vice versa. |
| |
| Usage (server): |
| mtom-test <port> |
| |
| Usage (client): |
| mtom-test http://localhost:<port> "<message>" "<MIME-type>" |
| |
| Usage (client): |
| mtom-test http://localhost:<port> "<message>" "<MIME-type>" "<message2>" "<message3>" ... |
| |
| -------------------------------------------------------------------------------- |
| gSOAP XML Web services tools |
| Copyright (C) 2000-2005, 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 under |
| the terms of the GNU General Public License as published by the Free Software |
| Foundation; either version 2 of the License, or (at your option) any later |
| version. |
| |
| This program is distributed in the hope that it will be useful, but WITHOUT ANY |
| WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License along with |
| this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
| Place, Suite 330, Boston, MA 02111-1307 USA |
| |
| Author 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 "xmlmime.h" |
| |
| //gsoap m service namespace: http://www.genivia.com/wsdl/mtom-test.wsdl |
| //gsoap m service name: mtom-test |
| |
| //gsoap x schema namespace: http://www.genivia.com/schemas/mtom-test.xsd |
| //gsoap x schema elementForm: qualified |
| |
| struct xsd__base64Binary |
| { unsigned char *__ptr; |
| int __size; |
| }; |
| |
| struct x__DataType |
| { int __union; |
| union x__data |
| { _xop__Include xop__Include; |
| struct xsd__base64Binary base64; |
| } choice; |
| @char *xmlmime__contentType; |
| }; |
| |
| struct x__WrapperType |
| { int __size; |
| struct x__DataType *Data; |
| }; |
| |
| int __m__EchoTestSingle( |
| struct x__DataType *x__Data, |
| struct __m__EchoTestSingleResponse |
| { struct x__DataType *x__Data; |
| }* |
| ); |
| |
| int __m__EchoTestMultiple( |
| struct x__WrapperType *x__EchoTest, |
| struct __m__EchoTestMultipleResponse |
| { struct x__WrapperType *x__EchoTest; |
| }* |
| ); |