comparison GEMBASSY-1.0.3/gsoap/wsdl/mime.cpp @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8300eb051bea
1 /*
2 mime.cpp
3
4 WSDL/MIME binding schema
5
6 --------------------------------------------------------------------------------
7 gSOAP XML Web services tools
8 Copyright (C) 2001-2008, Robert van Engelen, Genivia Inc. All Rights Reserved.
9 This software is released under one of the following licenses:
10 GPL or Genivia's license for commercial use.
11 --------------------------------------------------------------------------------
12 GPL license.
13
14 This program is free software; you can redistribute it and/or modify it under
15 the terms of the GNU General Public License as published by the Free Software
16 Foundation; either version 2 of the License, or (at your option) any later
17 version.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT ANY
20 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21 PARTICULAR PURPOSE. See the GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
25 Place, Suite 330, Boston, MA 02111-1307 USA
26
27 Author contact information:
28 engelen@genivia.com / engelen@acm.org
29 --------------------------------------------------------------------------------
30 A commercial use license is available from Genivia, Inc., contact@genivia.com
31 --------------------------------------------------------------------------------
32
33 */
34
35 #include "wsdlH.h" // cannot include "schemaH.h"
36 #include "includes.h"
37
38 extern const char *qname_token(const char*, const char*);
39
40 ////////////////////////////////////////////////////////////////////////////////
41 //
42 // mime:multipartRelated
43 //
44 ////////////////////////////////////////////////////////////////////////////////
45
46 int mime__multipartRelated::traverse(wsdl__definitions& definitions)
47 { if (vflag)
48 cerr << "Analyzing mime multpartRelated " << endl;
49 for (vector<mime__part>::iterator pt = part.begin(); pt != part.end(); ++pt)
50 (*pt).traverse(definitions);
51 return SOAP_OK;
52 }
53
54 ////////////////////////////////////////////////////////////////////////////////
55 //
56 // mime:part
57 //
58 ////////////////////////////////////////////////////////////////////////////////
59
60 int mime__part::traverse(wsdl__definitions& definitions)
61 { if (vflag)
62 cerr << "Analyzing mime part " << endl;
63 for (vector<soap__header>::iterator hd = soap__header_.begin(); hd != soap__header_.end(); ++hd)
64 (*hd).traverse(definitions);
65 return SOAP_OK;
66 }