Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7dbb97048ebf07a07f14d36d61024b23 > files > 66

wsdlpull-doc-1.23-3.fc13.noarch.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>wsdlpull: /builddir/build/BUILD/wsdlpull-1.23/src/wsdlparser/Soap.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_02f058d422e7266632662d1436e7c90d.html">src</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_cc7944105668626785e4a1a985510ef5.html">wsdlparser</a>
  </div>
</div>
<div class="contents">
<h1>Soap.cpp</h1><a href="Soap_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span>
<a name="l00002"></a>00002 <span class="comment"> * wsdlpull - A C++ parser  for WSDL  (Web services description language)</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2005-2007 Vivek Krishna</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
<a name="l00016"></a>00016 <span class="comment"> * License along with this library; if not, write to the Free</span>
<a name="l00017"></a>00017 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="Soap_8h.html">wsdlparser/Soap.h</a>&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">using namespace </span>std;
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">namespace </span>WsdlPull {
<a name="l00029"></a>00029 <span class="comment">/*</span>
<a name="l00030"></a>00030 <span class="comment">  TODO</span>
<a name="l00031"></a>00031 <span class="comment">  1.When the use is &quot;encoded&quot; the part must reference the an</span>
<a name="l00032"></a>00032 <span class="comment">  abstract type using the &quot;type&quot; attribute .</span>
<a name="l00033"></a>00033 <span class="comment">  2.Only Soap encoding style is supported</span>
<a name="l00034"></a>00034 <span class="comment">*/</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#aaac5c7d939de8776260a4ba7116ab072">Soap::httpTransport</a> = <span class="stringliteral">&quot;http://schemas.xmlsoap.org/soap/http&quot;</span>;
<a name="l00039"></a>00039 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#ad6eb89c1a066c0794aa3cfeabcd38f61">Soap::httpBinding</a> = <span class="stringliteral">&quot;http://schemas.xmlsoap.org/wsdl/http/&quot;</span>;
<a name="l00040"></a>00040 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#a2f2526442c8c27d5755ca1e3931f7849">Soap::soapEncUri11</a> = <span class="stringliteral">&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;</span>;
<a name="l00041"></a>00041 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#af6cfd89362a8d9795888371365bd1926">Soap::soapEnvUri11</a> = <span class="stringliteral">&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;</span>;
<a name="l00042"></a>00042 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#a2b3e318047b123568ae66c2cf88e31a3">Soap::soapEncUri12</a> = <span class="stringliteral">&quot;http://www.w3.org/2003/05/soap-encoding&quot;</span>;
<a name="l00043"></a>00043 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#ae13abcfcb92250a8ef398304cbab9707">Soap::soapEnvUri12</a> = <span class="stringliteral">&quot;http://www.w3.org/2003/05/soap-envelope&quot;</span>;
<a name="l00044"></a>00044 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#a2d023944751b36b9e323a5f139013cae">Soap::soapBindingUri11</a> =<span class="stringliteral">&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;</span>;
<a name="l00045"></a>00045 <span class="keyword">const</span> std::string <a class="code" href="classWsdlPull_1_1Soap.html#ad491dc6459b4c398abd60d5d0b29134f">Soap::soapBindingUri12</a>= <span class="stringliteral">&quot;http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsd&quot;</span>;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="classWsdlPull_1_1Soap.html#a5f4f9d5c18e5a934347dcc4e1c66d372">00048</a> <a class="code" href="classWsdlPull_1_1Soap.html#a5f4f9d5c18e5a934347dcc4e1c66d372">Soap::Soap</a>(<span class="keyword">const</span> std::string &amp; schemaPath, <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4">SoapVersion</a> a_soapVersion)
<a name="l00049"></a>00049   :startId(0),
<a name="l00050"></a>00050    mySchemaParser(0),
<a name="l00051"></a>00051    mySchemaValidator(0),
<a name="l00052"></a>00052    wParser_(0),
<a name="l00053"></a>00053    idCounter(0),
<a name="l00054"></a>00054    schemaPath_(schemaPath),
<a name="l00055"></a>00055    soapVersion_(a_soapVersion)
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057   header_.clear();
<a name="l00058"></a>00058   body_.clear();
<a name="l00059"></a>00059   location_.clear();
<a name="l00060"></a>00060   ops_.clear();
<a name="l00061"></a>00061   idTable.clear();
<a name="l00062"></a>00062 
<a name="l00063"></a>00063   <span class="keywordflow">if</span> (a_soapVersion == <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4af12ce1a6df2058d3bca2d485d6dc7f6e">SOAP12</a>)
<a name="l00064"></a>00064     sNamespace = <a class="code" href="classWsdlPull_1_1Soap.html#ad491dc6459b4c398abd60d5d0b29134f">Soap::soapBindingUri12</a>;
<a name="l00065"></a>00065   <span class="keywordflow">else</span>
<a name="l00066"></a>00066     sNamespace = <a class="code" href="classWsdlPull_1_1Soap.html#a2d023944751b36b9e323a5f139013cae">Soap::soapBindingUri11</a>;
<a name="l00067"></a>00067 }
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 
<a name="l00070"></a><a class="code" href="classWsdlPull_1_1Soap.html#a78a1f161f241f21710cebd538e697d74">00070</a> <a class="code" href="classWsdlPull_1_1Soap.html#a78a1f161f241f21710cebd538e697d74">Soap::~Soap</a>()
<a name="l00071"></a>00071 {
<a name="l00072"></a>00072   <span class="keywordflow">if</span> (mySchemaParser)
<a name="l00073"></a>00073     <span class="keyword">delete</span> mySchemaParser;
<a name="l00074"></a>00074   <span class="keywordflow">if</span> (mySchemaValidator)
<a name="l00075"></a>00075     <span class="keyword">delete</span> mySchemaValidator;
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 std::string 
<a name="l00079"></a><a class="code" href="classWsdlPull_1_1Soap.html#ab799a2537a264ee73898758719b66441">00079</a> <a class="code" href="classWsdlPull_1_1Soap.html#ab799a2537a264ee73898758719b66441">Soap::getExtensibilitySchema</a>(<span class="keywordtype">void</span>)<span class="keyword">const</span>
<a name="l00080"></a>00080 <span class="keyword"></span>{
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 
<a name="l00083"></a>00083   <span class="keywordflow">if</span> (<a class="code" href="classWsdlPull_1_1WsdlParser.html#a30ff5f610b7d8e1b76a2d82bba861ba9">WsdlPull::WsdlParser::useLocalSchema_</a> == <span class="keyword">false</span>) {
<a name="l00084"></a>00084     <span class="keywordflow">return</span> sNamespace;
<a name="l00085"></a>00085   }
<a name="l00086"></a>00086 
<a name="l00087"></a>00087   <span class="keywordtype">string</span> path=schemaPath_;
<a name="l00088"></a>00088   path+=<span class="stringliteral">&quot;soap.xsd&quot;</span>;
<a name="l00089"></a>00089   <span class="keywordflow">return</span> path;
<a name="l00090"></a>00090 }
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 std::string
<a name="l00093"></a><a class="code" href="classWsdlPull_1_1Soap.html#ae6dae401e246cc37738ab9eeb375b867">00093</a> <a class="code" href="classWsdlPull_1_1Soap.html#ae6dae401e246cc37738ab9eeb375b867">Soap::getEncodingSchema</a>(<span class="keywordtype">void</span>)<span class="keyword">const</span>
<a name="l00094"></a>00094 <span class="keyword"></span>{
<a name="l00095"></a>00095 
<a name="l00096"></a>00096   <span class="keywordflow">if</span> (<a class="code" href="classWsdlPull_1_1WsdlParser.html#a30ff5f610b7d8e1b76a2d82bba861ba9">WsdlPull::WsdlParser::useLocalSchema_</a> == <span class="keyword">false</span>) {
<a name="l00097"></a>00097     
<a name="l00098"></a>00098     <span class="keywordflow">switch</span>(<a class="code" href="classWsdlPull_1_1Soap.html#ac8c9fb2de026162114f3c45336d31c57">getSoapVersion</a>()) {
<a name="l00099"></a>00099     
<a name="l00100"></a>00100     <span class="keywordflow">case</span> <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4af12ce1a6df2058d3bca2d485d6dc7f6e">SOAP12</a>:
<a name="l00101"></a>00101       <span class="keywordflow">return</span> <a class="code" href="classWsdlPull_1_1Soap.html#a2b3e318047b123568ae66c2cf88e31a3">soapEncUri12</a>;
<a name="l00102"></a>00102       <span class="keywordflow">break</span>;
<a name="l00103"></a>00103           
<a name="l00104"></a>00104     <span class="keywordflow">case</span> <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4a060d281c8b48d15ad37f62d43fbb45a7">SOAP11</a>:
<a name="l00105"></a>00105     <span class="keywordflow">default</span>:
<a name="l00106"></a>00106       <span class="keywordflow">return</span> <a class="code" href="classWsdlPull_1_1Soap.html#a2f2526442c8c27d5755ca1e3931f7849">soapEncUri11</a>;
<a name="l00107"></a>00107       <span class="keywordflow">break</span>;
<a name="l00108"></a>00108     }
<a name="l00109"></a>00109   }
<a name="l00110"></a>00110 
<a name="l00111"></a>00111   <span class="keywordtype">string</span> path=schemaPath_;
<a name="l00112"></a>00112   path+=<span class="stringliteral">&quot;soap-encoding.xsd&quot;</span>;
<a name="l00113"></a>00113   <span class="keywordflow">return</span> path;
<a name="l00114"></a>00114 }
<a name="l00115"></a>00115 
<a name="l00116"></a>00116 std::string
<a name="l00117"></a><a class="code" href="classWsdlPull_1_1Soap.html#a13d021e91455d7a6811c62266fcd1e85">00117</a> <a class="code" href="classWsdlPull_1_1Soap.html#a13d021e91455d7a6811c62266fcd1e85">Soap::getEncodingUri</a>(<span class="keywordtype">void</span>)<span class="keyword">const</span>
<a name="l00118"></a>00118 <span class="keyword"></span>{
<a name="l00119"></a>00119     <span class="keywordflow">switch</span>(<a class="code" href="classWsdlPull_1_1Soap.html#ac8c9fb2de026162114f3c45336d31c57">getSoapVersion</a>()) {
<a name="l00120"></a>00120         <span class="keywordflow">case</span> <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4af12ce1a6df2058d3bca2d485d6dc7f6e">SOAP12</a>:
<a name="l00121"></a>00121             <span class="keywordflow">return</span> <a class="code" href="classWsdlPull_1_1Soap.html#a2b3e318047b123568ae66c2cf88e31a3">soapEncUri12</a>;
<a name="l00122"></a>00122             <span class="keywordflow">break</span>;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124         <span class="keywordflow">case</span> <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4a060d281c8b48d15ad37f62d43fbb45a7">SOAP11</a>:
<a name="l00125"></a>00125         <span class="keywordflow">default</span>:
<a name="l00126"></a>00126             <span class="keywordflow">return</span> <a class="code" href="classWsdlPull_1_1Soap.html#a2f2526442c8c27d5755ca1e3931f7849">soapEncUri11</a>;
<a name="l00127"></a>00127             <span class="keywordflow">break</span>;
<a name="l00128"></a>00128     }
<a name="l00129"></a>00129 }
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 std::string
<a name="l00132"></a><a class="code" href="classWsdlPull_1_1Soap.html#aff10974922785e561686e7211b8fda88">00132</a> <a class="code" href="classWsdlPull_1_1Soap.html#aff10974922785e561686e7211b8fda88">Soap::getEnvelopeUri</a>(<span class="keywordtype">void</span>)<span class="keyword">const</span>
<a name="l00133"></a>00133 <span class="keyword"></span>{
<a name="l00134"></a>00134     <span class="keywordflow">switch</span>(<a class="code" href="classWsdlPull_1_1Soap.html#ac8c9fb2de026162114f3c45336d31c57">getSoapVersion</a>()) {
<a name="l00135"></a>00135         <span class="keywordflow">case</span> <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4af12ce1a6df2058d3bca2d485d6dc7f6e">SOAP12</a>:
<a name="l00136"></a>00136             <span class="keywordflow">return</span> <a class="code" href="classWsdlPull_1_1Soap.html#ae13abcfcb92250a8ef398304cbab9707">soapEnvUri12</a>;
<a name="l00137"></a>00137             <span class="keywordflow">break</span>;
<a name="l00138"></a>00138 
<a name="l00139"></a>00139         <span class="keywordflow">case</span> <a class="code" href="classWsdlPull_1_1Soap.html#a617ef4f53d3daa349cb4531e8bc740a4a060d281c8b48d15ad37f62d43fbb45a7">SOAP11</a>:
<a name="l00140"></a>00140         <span class="keywordflow">default</span>:
<a name="l00141"></a>00141             <span class="keywordflow">return</span> <a class="code" href="classWsdlPull_1_1Soap.html#af6cfd89362a8d9795888371365bd1926">soapEnvUri11</a>;
<a name="l00142"></a>00142             <span class="keywordflow">break</span>;
<a name="l00143"></a>00143     }
<a name="l00144"></a>00144 }
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="keywordtype">int</span> 
<a name="l00147"></a><a class="code" href="classWsdlPull_1_1Soap.html#a50500fafd457fd6036c996470449e367">00147</a> <a class="code" href="classWsdlPull_1_1Soap.html#a50500fafd457fd6036c996470449e367">Soap::handleElement</a>(<span class="keywordtype">int</span> parent, <a class="code" href="classXmlPullParser.html">XmlPullParser</a> * xParser)
<a name="l00148"></a>00148 {
<a name="l00149"></a>00149   <span class="keywordflow">if</span> (mySchemaParser == 0) {
<a name="l00150"></a>00150    error(<span class="stringliteral">&quot;Could not parse soap extensibility elements&quot;</span>);
<a name="l00151"></a>00151     <span class="keywordflow">return</span> 0;
<a name="l00152"></a>00152   }
<a name="l00153"></a>00153   <span class="keywordtype">string</span> elemName = xParser-&gt;<a class="code" href="classXmlPullParser.html#a861f8c8b5b08ab96fb7c33756f7cc94d">getName</a>();
<a name="l00154"></a>00154   <span class="keywordtype">int</span> elemId = 0;
<a name="l00155"></a>00155   <a class="code" href="classQname.html">Qname</a> q(elemName);
<a name="l00156"></a>00156   <span class="keyword">const</span>  <a class="code" href="classSchema_1_1Element.html">Element</a>* e= mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(q);
<a name="l00157"></a>00157   <span class="keywordflow">if</span> (e == 0) {
<a name="l00158"></a>00158 
<a name="l00159"></a>00159     error(<span class="stringliteral">&quot;Unknown element&quot;</span>);
<a name="l00160"></a>00160     <span class="keywordflow">return</span> 0;
<a name="l00161"></a>00161   }
<a name="l00162"></a>00162   <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * t = <span class="keyword">new</span> <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a>(e-&gt;<a class="code" href="classSchema_1_1Element.html#a5a3acbc55a5739e80b1f2855b62e94f9">getType</a>(), mySchemaParser);
<a name="l00163"></a>00163   
<a name="l00164"></a>00164   <span class="keywordflow">try</span>{
<a name="l00165"></a>00165 
<a name="l00166"></a>00166     mySchemaValidator-&gt;<a class="code" href="classSchema_1_1SchemaValidator.html#a408b10148dfbcc921dabf7893e11ae36">validate</a>(xParser,e-&gt;<a class="code" href="classSchema_1_1Element.html#a5a3acbc55a5739e80b1f2855b62e94f9">getType</a>(), t);
<a name="l00167"></a>00167   } 
<a name="l00168"></a>00168   <span class="keywordflow">catch</span> (<a class="code" href="classSchema_1_1SchemaParserException.html">SchemaParserException</a> spe) {
<a name="l00169"></a>00169     
<a name="l00170"></a>00170     error(spe.<a class="code" href="classSchema_1_1SchemaParserException.html#abad96177c969c678702645a9a792fe34">description</a> + <span class="stringliteral">&quot;Encountered error while validating {&quot;</span>+sNamespace +<span class="stringliteral">&quot;}:&quot;</span>+elemName);
<a name="l00171"></a>00171   }
<a name="l00172"></a>00172   <span class="keywordflow">if</span> (elemName == <span class="stringliteral">&quot;binding&quot;</span>)
<a name="l00173"></a>00173     elemId = processBinding(t);
<a name="l00174"></a>00174 
<a name="l00175"></a>00175   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (elemName == <span class="stringliteral">&quot;operation&quot;</span>)
<a name="l00176"></a>00176     elemId = processOp(parent, t);
<a name="l00177"></a>00177 
<a name="l00178"></a>00178   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (elemName == <span class="stringliteral">&quot;body&quot;</span>)
<a name="l00179"></a>00179     elemId = processBody(parent, t);
<a name="l00180"></a>00180 
<a name="l00181"></a>00181   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (elemName == <span class="stringliteral">&quot;header&quot;</span>)
<a name="l00182"></a>00182     elemId = processHeader(parent, t);
<a name="l00183"></a>00183 
<a name="l00184"></a>00184   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (elemName == <span class="stringliteral">&quot;fault&quot;</span>)
<a name="l00185"></a>00185     elemId = processFault(parent, t);
<a name="l00186"></a>00186 
<a name="l00187"></a>00187   <span class="keywordflow">else</span> <span class="keywordflow">if</span> (elemName == <span class="stringliteral">&quot;address&quot;</span>)
<a name="l00188"></a>00188     elemId = processAddress(parent, t);
<a name="l00189"></a>00189 
<a name="l00190"></a>00190   <span class="keyword">delete</span> t;
<a name="l00191"></a>00191   <span class="keywordflow">return</span> elemId;
<a name="l00192"></a>00192 }
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 <span class="keywordtype">int</span>
<a name="l00196"></a><a class="code" href="classWsdlPull_1_1Soap.html#a61eeb0eaa17b5be4b0ca32c7696dee62">00196</a> <a class="code" href="classWsdlPull_1_1Soap.html#a61eeb0eaa17b5be4b0ca32c7696dee62">Soap::handleAttribute</a>(<span class="keywordtype">int</span> parent, <span class="keywordtype">string</span> att,
<a name="l00197"></a>00197                       <a class="code" href="classXmlPullParser.html">XmlPullParser</a> * xParser)
<a name="l00198"></a>00198 {
<a name="l00199"></a>00199   <span class="keywordflow">return</span> 0;
<a name="l00200"></a>00200 }
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 
<a name="l00203"></a>00203 <span class="keywordtype">int</span>  Soap::processBinding(<a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * t)
<a name="l00204"></a>00204 {
<a name="l00205"></a>00205   <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * temp = 0;
<a name="l00206"></a>00206   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;transport&quot;</span>)) != 0)
<a name="l00207"></a>00207     {
<a name="l00208"></a>00208       <span class="keywordtype">string</span> tp = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));
<a name="l00209"></a>00209       <span class="keywordflow">if</span> (tp == <a class="code" href="classWsdlPull_1_1Soap.html#aaac5c7d939de8776260a4ba7116ab072">httpTransport</a>)
<a name="l00210"></a>00210         transport_ = <a class="code" href="classWsdlPull_1_1Soap.html#a2dbc80cd8c3ecc1953be7a9fd07b4e60ada3f7d49cdf5fec51852600424713281">HTTP</a>;
<a name="l00211"></a>00211 
<a name="l00212"></a>00212       <span class="keywordflow">else</span>
<a name="l00213"></a>00213         transport_ = <a class="code" href="classWsdlPull_1_1Soap.html#a2dbc80cd8c3ecc1953be7a9fd07b4e60ad95d139923949863d3547055715bd657">NONE</a>;
<a name="l00214"></a>00214     }
<a name="l00215"></a>00215 
<a name="l00216"></a>00216   <span class="keywordflow">else</span>
<a name="l00217"></a>00217     transport_ = <a class="code" href="classWsdlPull_1_1Soap.html#a2dbc80cd8c3ecc1953be7a9fd07b4e60ada3f7d49cdf5fec51852600424713281">HTTP</a>;
<a name="l00218"></a>00218 
<a name="l00219"></a>00219   <span class="comment">/*</span>
<a name="l00220"></a>00220 <span class="comment">   * Assume default transport as HTTP</span>
<a name="l00221"></a>00221 <span class="comment">   */</span>
<a name="l00222"></a>00222   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;style&quot;</span>)) != 0)
<a name="l00223"></a>00223     {
<a name="l00224"></a>00224       <span class="keywordtype">string</span> style = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));
<a name="l00225"></a>00225       <span class="keywordflow">if</span> (style == <span class="stringliteral">&quot;rpc&quot;</span>)
<a name="l00226"></a>00226         style_ = <a class="code" href="classWsdlPull_1_1Soap.html#ad33ddb057c0a9c488d73a8363277081eae77c60ad3cca90967be8874f4cf79458">RPC</a>;
<a name="l00227"></a>00227 
<a name="l00228"></a>00228       <span class="keywordflow">else</span>
<a name="l00229"></a>00229         style_ = <a class="code" href="classWsdlPull_1_1Soap.html#ad33ddb057c0a9c488d73a8363277081eaa24e99e0b7b78e0f75000d96e5c813ca">DOC</a>;
<a name="l00230"></a>00230     }
<a name="l00231"></a>00231 
<a name="l00232"></a>00232   <span class="keywordflow">else</span>
<a name="l00233"></a>00233     style_ = <a class="code" href="classWsdlPull_1_1Soap.html#ad33ddb057c0a9c488d73a8363277081eaa24e99e0b7b78e0f75000d96e5c813ca">DOC</a>;
<a name="l00234"></a>00234   <a class="code" href="classQname.html">Qname</a> binding(<span class="stringliteral">&quot;binding&quot;</span>);
<a name="l00235"></a>00235   IDTableIndex idi;
<a name="l00236"></a>00236   idi.typeId=(mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(binding))-&gt;getType();
<a name="l00237"></a>00237   idi.index=0;
<a name="l00238"></a>00238   idTable.push_back(idi);
<a name="l00239"></a>00239   idCounter++;
<a name="l00240"></a>00240   <span class="keywordflow">return</span> startId + idCounter - 1;
<a name="l00241"></a>00241 }
<a name="l00242"></a>00242 
<a name="l00243"></a>00243 
<a name="l00244"></a>00244 <span class="keywordtype">int</span>
<a name="l00245"></a>00245 Soap::processOp(<span class="keywordtype">int</span> parent, <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * t)
<a name="l00246"></a>00246 {
<a name="l00247"></a>00247   <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * temp = 0;
<a name="l00248"></a>00248   SoapOperationBinding sopb;
<a name="l00249"></a>00249   
<a name="l00250"></a>00250   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;soapAction&quot;</span>)) != 0)
<a name="l00251"></a>00251     {
<a name="l00252"></a>00252       <span class="keywordtype">string</span> * s = (<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>());
<a name="l00253"></a>00253       <span class="keywordflow">if</span>(s)
<a name="l00254"></a>00254         sopb.soapAction = *s;
<a name="l00255"></a>00255     }
<a name="l00256"></a>00256 
<a name="l00257"></a>00257   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;style&quot;</span>)) != 0)
<a name="l00258"></a>00258     {
<a name="l00259"></a>00259       <span class="keywordtype">string</span> style = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));
<a name="l00260"></a>00260       <span class="keywordflow">if</span> (style == <span class="stringliteral">&quot;rpc&quot;</span>)
<a name="l00261"></a>00261         sopb.style = <a class="code" href="classWsdlPull_1_1Soap.html#ad33ddb057c0a9c488d73a8363277081eae77c60ad3cca90967be8874f4cf79458">RPC</a>;
<a name="l00262"></a>00262 
<a name="l00263"></a>00263       <span class="keywordflow">else</span>
<a name="l00264"></a>00264         sopb.style = <a class="code" href="classWsdlPull_1_1Soap.html#ad33ddb057c0a9c488d73a8363277081eaa24e99e0b7b78e0f75000d96e5c813ca">DOC</a>;
<a name="l00265"></a>00265     }
<a name="l00266"></a>00266   <span class="keywordflow">else</span>                                          <span class="comment">//Use the binding element&#39;s style attribute</span>
<a name="l00267"></a>00267     sopb.style = style_;
<a name="l00268"></a>00268   sopb.wsdlOpId = parent;
<a name="l00269"></a>00269 
<a name="l00270"></a>00270   ops_.push_back(sopb);
<a name="l00271"></a>00271 
<a name="l00272"></a>00272   <a class="code" href="classQname.html">Qname</a> oprn(<span class="stringliteral">&quot;operation&quot;</span>);
<a name="l00273"></a>00273   IDTableIndex idi;
<a name="l00274"></a>00274   idi.typeId=(mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(oprn))-&gt;getType();
<a name="l00275"></a>00275   idi.index=ops_.size()-1;
<a name="l00276"></a>00276   idTable.push_back(idi);
<a name="l00277"></a>00277   idCounter++;
<a name="l00278"></a>00278   <span class="keywordflow">return</span> startId + idCounter - 1;
<a name="l00279"></a>00279 }
<a name="l00280"></a>00280 
<a name="l00281"></a>00281 
<a name="l00282"></a>00282 <span class="keywordtype">int</span>
<a name="l00283"></a>00283 Soap::processBody(<span class="keywordtype">int</span> parent, <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * t)
<a name="l00284"></a>00284 {
<a name="l00285"></a>00285   <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * temp = 0;
<a name="l00286"></a>00286   <span class="keywordtype">string</span> use;
<a name="l00287"></a>00287   SoapMessageBinding smb;
<a name="l00288"></a>00288 
<a name="l00289"></a>00289   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;use&quot;</span>)) != 0)
<a name="l00290"></a>00290     {
<a name="l00291"></a>00291       use = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));
<a name="l00292"></a>00292       <span class="keywordflow">if</span> (use == <span class="stringliteral">&quot;literal&quot;</span>)
<a name="l00293"></a>00293         smb.use = <a class="code" href="classWsdlPull_1_1Soap.html#a350e3c99b549293ef06982a6871d225cad5673f952094d6548abc15448b98d4f4">LITERAL</a>;
<a name="l00294"></a>00294       <span class="keywordflow">else</span>
<a name="l00295"></a>00295         smb.use = <a class="code" href="classWsdlPull_1_1Soap.html#a350e3c99b549293ef06982a6871d225caf7434daeba36b1503c09d465a8442568">ENCODED</a>;
<a name="l00296"></a>00296     }
<a name="l00297"></a>00297   <span class="keywordflow">else</span>
<a name="l00298"></a>00298     smb.use = <a class="code" href="classWsdlPull_1_1Soap.html#a350e3c99b549293ef06982a6871d225cad5673f952094d6548abc15448b98d4f4">LITERAL</a>;
<a name="l00299"></a>00299 
<a name="l00300"></a>00300   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;namespace&quot;</span>)) != 0)
<a name="l00301"></a>00301     {
<a name="l00302"></a>00302       <span class="keywordtype">string</span> * s = (<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>());
<a name="l00303"></a>00303       smb.urn = *s;
<a name="l00304"></a>00304     }
<a name="l00305"></a>00305   <span class="keywordflow">else</span>{
<a name="l00306"></a>00306     
<a name="l00307"></a>00307     smb.urn=<span class="stringliteral">&quot;&quot;</span>;
<a name="l00308"></a>00308   }
<a name="l00309"></a>00309 
<a name="l00310"></a>00310   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;encodingStyle&quot;</span>)) != 0)
<a name="l00311"></a>00311   {
<a name="l00312"></a>00312     <span class="keywordtype">string</span> * s = (<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>());
<a name="l00313"></a>00313     smb.encodingStyle = *s;
<a name="l00314"></a>00314   }
<a name="l00315"></a>00315   <span class="keywordflow">else</span>{
<a name="l00316"></a>00316 
<a name="l00317"></a>00317     smb.encodingStyle=<span class="stringliteral">&quot;&quot;</span>;
<a name="l00318"></a>00318   }
<a name="l00319"></a>00319 
<a name="l00320"></a>00320   body_.push_back(smb);
<a name="l00321"></a>00321 
<a name="l00322"></a>00322   <a class="code" href="classQname.html">Qname</a> body(<span class="stringliteral">&quot;body&quot;</span>);
<a name="l00323"></a>00323   IDTableIndex idi;
<a name="l00324"></a>00324   idi.typeId=(mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(body))-&gt;getType();
<a name="l00325"></a>00325   idi.index=body_.size()-1;
<a name="l00326"></a>00326   idTable.push_back(idi);
<a name="l00327"></a>00327   idCounter++;
<a name="l00328"></a>00328   <span class="keywordflow">return</span> startId + idCounter - 1;
<a name="l00329"></a>00329 }
<a name="l00330"></a>00330 
<a name="l00331"></a>00331 
<a name="l00332"></a>00332 <span class="keywordtype">int</span>
<a name="l00333"></a>00333 Soap::processFault(<span class="keywordtype">int</span> parent, <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> *)
<a name="l00334"></a>00334 {
<a name="l00335"></a>00335   <span class="comment">//TODO</span>
<a name="l00336"></a>00336   <span class="keywordflow">return</span> startId + idCounter - 1;
<a name="l00337"></a>00337 }
<a name="l00338"></a>00338 
<a name="l00339"></a>00339 
<a name="l00340"></a>00340 <span class="keywordtype">int</span>  
<a name="l00341"></a>00341 Soap::processAddress(<span class="keywordtype">int</span> parent, <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * t)
<a name="l00342"></a>00342 {
<a name="l00343"></a>00343   <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * temp = 0;
<a name="l00344"></a>00344   <span class="keywordtype">string</span> location;
<a name="l00345"></a>00345 
<a name="l00346"></a>00346   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;location&quot;</span>)) != 0)
<a name="l00347"></a>00347     {
<a name="l00348"></a>00348       <span class="keywordtype">string</span> * s = (<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>());
<a name="l00349"></a>00349       <span class="keywordflow">if</span>(s)
<a name="l00350"></a>00350         location_.push_back(*s);
<a name="l00351"></a>00351     }
<a name="l00352"></a>00352   <a class="code" href="classQname.html">Qname</a> address(<span class="stringliteral">&quot;address&quot;</span>);
<a name="l00353"></a>00353 
<a name="l00354"></a>00354   IDTableIndex idi;
<a name="l00355"></a>00355   idi.typeId=(mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(address))-&gt;getType();
<a name="l00356"></a>00356   idi.index=location_.size()-1;
<a name="l00357"></a>00357   idTable.push_back(idi);
<a name="l00358"></a>00358   idCounter++;
<a name="l00359"></a>00359   <span class="keywordflow">return</span> startId + idCounter - 1;
<a name="l00360"></a>00360 }
<a name="l00361"></a>00361 
<a name="l00362"></a>00362 
<a name="l00363"></a>00363 <span class="keywordtype">int</span>
<a name="l00364"></a>00364 Soap::processHeader(<span class="keywordtype">int</span> parent, <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * t)
<a name="l00365"></a>00365 {
<a name="l00366"></a>00366   <a class="code" href="classSchema_1_1TypeContainer.html">TypeContainer</a> * temp = 0;
<a name="l00367"></a>00367   <a class="code" href="classQname.html">Qname</a> msg;
<a name="l00368"></a>00368   std::string ns, part;
<a name="l00369"></a>00369   <a class="code" href="classQname.html">Qname</a> header(<span class="stringliteral">&quot;header&quot;</span>);
<a name="l00370"></a>00370   <span class="keywordtype">int</span> partType;
<a name="l00371"></a>00371   SoapHeaderBinding shb;
<a name="l00372"></a>00372   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;message&quot;</span>)) != 0) {
<a name="l00373"></a>00373     
<a name="l00374"></a>00374     msg = *((<a class="code" href="classQname.html">Qname</a> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));
<a name="l00375"></a>00375   }
<a name="l00376"></a>00376   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;namespace&quot;</span>)) != 0) {
<a name="l00377"></a>00377 
<a name="l00378"></a>00378     ns = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));
<a name="l00379"></a>00379   }
<a name="l00380"></a>00380   <span class="keyword">const</span> Message *m = wParser_-&gt;getMessage(msg);
<a name="l00381"></a>00381   <span class="keywordflow">if</span> (m == 0) {
<a name="l00382"></a>00382     error(<span class="stringliteral">&quot;Unkown message &quot;</span> + msg.<a class="code" href="classQname.html#acc177c6742061f76a3f09a3898256bf2">getLocalName</a>());
<a name="l00383"></a>00383     <span class="keywordflow">return</span> 0;
<a name="l00384"></a>00384   }
<a name="l00385"></a>00385   <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;parts&quot;</span>)) != 0) {
<a name="l00386"></a>00386     
<a name="l00387"></a>00387     part = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));  <span class="comment">//this is actually NMTOKENS</span>
<a name="l00388"></a>00388     <span class="comment">//Multiple parts not supported</span>
<a name="l00389"></a>00389   }
<a name="l00390"></a>00390   <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((temp = t-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#a2795e649d1a0c7be359447d0281a6288">getAttributeContainer</a>(<span class="stringliteral">&quot;part&quot;</span>)) != 0) {
<a name="l00391"></a>00391     <span class="comment">//some wsdls use &#39;part&#39; instead of &#39;parts&#39;</span>
<a name="l00392"></a>00392     part = *((<span class="keywordtype">string</span> *) (temp-&gt;<a class="code" href="classSchema_1_1TypeContainer.html#acaacc97004feb7252f538ec28adc2fbd">getValue</a>()));  
<a name="l00393"></a>00393   }
<a name="l00394"></a>00394   partType = m-&gt;getPartType(part);
<a name="l00395"></a>00395 
<a name="l00396"></a>00396   <span class="keywordflow">if</span> (partType == 0)
<a name="l00397"></a>00397     error(<span class="stringliteral">&quot;Unkown part type :&quot;</span>+ part);
<a name="l00398"></a>00398 
<a name="l00399"></a>00399   shb.partId_= m-&gt;getPartIndex(part);
<a name="l00400"></a>00400   shb.message_ = m;
<a name="l00401"></a>00401   shb.urn = ns;
<a name="l00402"></a>00402   header_.push_back(shb);
<a name="l00403"></a>00403 
<a name="l00404"></a>00404   IDTableIndex idi;
<a name="l00405"></a>00405   idi.typeId=(mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(header))-&gt;getType();
<a name="l00406"></a>00406   idi.index=header_.size()-1;
<a name="l00407"></a>00407   idTable.push_back(idi);
<a name="l00408"></a>00408 
<a name="l00409"></a>00409   idCounter++;
<a name="l00410"></a>00410   <span class="keywordflow">return</span> startId + idCounter - 1;
<a name="l00411"></a>00411 }
<a name="l00412"></a>00412 
<a name="l00413"></a>00413 
<a name="l00414"></a>00414 <span class="keywordtype">void</span>
<a name="l00415"></a><a class="code" href="classWsdlPull_1_1Soap.html#a18577d34dc590e00847bbe846d4dd72d">00415</a> <a class="code" href="classWsdlPull_1_1Soap.html#a18577d34dc590e00847bbe846d4dd72d">Soap::getSoapOperationInfo</a>(<span class="keywordtype">int</span> elemId, <span class="keywordtype">string</span> &amp; action, <a class="code" href="classWsdlPull_1_1Soap.html#ad33ddb057c0a9c488d73a8363277081e">Soap::Style</a> &amp;style)
<a name="l00416"></a>00416 {
<a name="l00417"></a>00417   <span class="keywordflow">if</span> (elemId - startId &gt;= idCounter ||
<a name="l00418"></a>00418       elemId &lt; startId )            <span class="comment">//invalid elem Id</span>
<a name="l00419"></a>00419     <span class="keywordflow">return</span>;
<a name="l00420"></a>00420   <span class="keywordtype">int</span> opId = idTable[elemId - startId].index;
<a name="l00421"></a>00421   action = ops_[opId].soapAction;
<a name="l00422"></a>00422   style = ops_[opId].style;
<a name="l00423"></a>00423 } 
<a name="l00424"></a>00424 
<a name="l00425"></a>00425 <span class="keywordtype">void</span>  
<a name="l00426"></a><a class="code" href="classWsdlPull_1_1Soap.html#a2286727e1d0bf70d46b3712ee65c25d6">00426</a> <a class="code" href="classWsdlPull_1_1Soap.html#a2286727e1d0bf70d46b3712ee65c25d6">Soap::getSoapBodyInfo</a>(<span class="keywordtype">int</span> elemId, <span class="keywordtype">string</span> &amp;ns, <a class="code" href="classWsdlPull_1_1Soap.html#a350e3c99b549293ef06982a6871d225c">Soap::Encoding</a> &amp;use, std::string &amp;encodingStyle)
<a name="l00427"></a>00427 {
<a name="l00428"></a>00428   <span class="keywordflow">if</span> (elemId - startId &gt;= idCounter ||
<a name="l00429"></a>00429       elemId &lt; startId )            <span class="comment">//invalid elem Id</span>
<a name="l00430"></a>00430     <span class="keywordflow">return</span>;
<a name="l00431"></a>00431   <span class="keywordtype">int</span> bodyId = idTable[elemId - startId].index;
<a name="l00432"></a>00432   ns = body_[bodyId].urn;
<a name="l00433"></a>00433   use = body_[bodyId].use;
<a name="l00434"></a>00434   encodingStyle = body_[bodyId].encodingStyle;
<a name="l00435"></a>00435 } 
<a name="l00436"></a>00436 
<a name="l00437"></a>00437 <span class="keywordtype">void</span>
<a name="l00438"></a><a class="code" href="classWsdlPull_1_1Soap.html#a27d149ee8b7343e41fb3f1aed1f4ee1a">00438</a> <a class="code" href="classWsdlPull_1_1Soap.html#a27d149ee8b7343e41fb3f1aed1f4ee1a">Soap::getSoapHeaderInfo</a>(<span class="keywordtype">int</span> elemId, <span class="keywordtype">string</span> &amp;ns, <span class="keywordtype">int</span> &amp;partId, <span class="keyword">const</span> <a class="code" href="classWsdlPull_1_1Message.html">Message</a>* &amp; m)
<a name="l00439"></a>00439 {
<a name="l00440"></a>00440   <span class="keywordflow">if</span> (elemId - startId &gt;= idCounter  ||
<a name="l00441"></a>00441       elemId &lt; startId )            <span class="comment">//invalid elem Id</span>
<a name="l00442"></a>00442     <span class="keywordflow">return</span>;
<a name="l00443"></a>00443   <span class="keywordtype">int</span> headerId = idTable[elemId - startId].index;
<a name="l00444"></a>00444   ns = header_[headerId].urn;
<a name="l00445"></a>00445   partId = header_[headerId].partId_;
<a name="l00446"></a>00446   m = header_[headerId].message_;
<a name="l00447"></a>00447 } 
<a name="l00448"></a>00448 
<a name="l00449"></a>00449 <span class="keywordtype">bool</span>
<a name="l00450"></a><a class="code" href="classWsdlPull_1_1Soap.html#a0ee8b116201a7f2ee4bc74bebbc0934e">00450</a> <a class="code" href="classWsdlPull_1_1Soap.html#a0ee8b116201a7f2ee4bc74bebbc0934e">Soap::getServiceLocation</a>(<span class="keywordtype">int</span> elemId, std::string &amp;location)
<a name="l00451"></a>00451 {
<a name="l00452"></a>00452   <span class="keywordflow">if</span> (elemId - startId &gt;= idCounter ||
<a name="l00453"></a>00453       elemId &lt; startId )            <span class="comment">//invalid elem Id</span>
<a name="l00454"></a>00454     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00455"></a>00455   <span class="keywordtype">int</span> locId = idTable[elemId - startId].index;
<a name="l00456"></a>00456   location = location_[locId];
<a name="l00457"></a>00457   <span class="keywordflow">if</span>(!location.empty())
<a name="l00458"></a>00458     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00459"></a>00459   <span class="keywordflow">else</span>
<a name="l00460"></a>00460     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00461"></a>00461 } 
<a name="l00462"></a>00462 
<a name="l00463"></a>00463 <span class="keywordtype">bool</span> 
<a name="l00464"></a><a class="code" href="classWsdlPull_1_1Soap.html#ab02ea5363ba82a807dcdf9eb2e4550f4">00464</a> <a class="code" href="classWsdlPull_1_1Soap.html#ab02ea5363ba82a807dcdf9eb2e4550f4">Soap::isSoapBody</a>(<span class="keywordtype">int</span> elemId)
<a name="l00465"></a>00465 {
<a name="l00466"></a>00466   <a class="code" href="classQname.html">Qname</a>  body(<span class="stringliteral">&quot;body&quot;</span>);
<a name="l00467"></a>00467   <span class="keywordflow">if</span> (elemId - startId &gt;= idCounter||
<a name="l00468"></a>00468       elemId &lt; startId )<span class="comment">//invalid elem Id</span>
<a name="l00469"></a>00469     
<a name="l00470"></a>00470     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00471"></a>00471   
<a name="l00472"></a>00472   <span class="keywordflow">if</span> (idTable[elemId - startId].typeId ==
<a name="l00473"></a>00473       (mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(body))-&gt;getType())
<a name="l00474"></a>00474     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00475"></a>00475   <span class="keywordflow">else</span>
<a name="l00476"></a>00476     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00477"></a>00477 }
<a name="l00478"></a>00478 
<a name="l00479"></a>00479 
<a name="l00480"></a>00480 <span class="keywordtype">bool</span> 
<a name="l00481"></a><a class="code" href="classWsdlPull_1_1Soap.html#a2a6b65624e62026a9776c962cd11d61e">00481</a> <a class="code" href="classWsdlPull_1_1Soap.html#a2a6b65624e62026a9776c962cd11d61e">Soap::isSoapHeader</a>(<span class="keywordtype">int</span> elemId)
<a name="l00482"></a>00482 {
<a name="l00483"></a>00483   <a class="code" href="classQname.html">Qname</a>  header(<span class="stringliteral">&quot;header&quot;</span>);
<a name="l00484"></a>00484   <span class="keywordflow">if</span> (elemId - startId &gt;= idCounter||
<a name="l00485"></a>00485       elemId &lt; startId )<span class="comment">//invalid elem Id</span>
<a name="l00486"></a>00486     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00487"></a>00487   <span class="keywordflow">if</span> (idTable[elemId - startId].typeId ==
<a name="l00488"></a>00488       (mySchemaParser-&gt;<a class="code" href="classSchema_1_1SchemaParser.html#aa11d8f9bf85870304ab35e387fd486b1">getElement</a>(header))-&gt;getType())
<a name="l00489"></a>00489     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00490"></a>00490 
<a name="l00491"></a>00491   <span class="keywordflow">else</span>
<a name="l00492"></a>00492     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00493"></a>00493 }
<a name="l00494"></a>00494 
<a name="l00495"></a>00495 
<a name="l00496"></a>00496 <span class="keywordtype">void</span>
<a name="l00497"></a>00497 Soap::error(std::string s)
<a name="l00498"></a>00498 {
<a name="l00499"></a>00499   wParser_-&gt;<a class="code" href="classWsdlPull_1_1WsdlParser.html#a99c49843227c56f4eea7226b52cb71cf">logger</a>()&lt;&lt; <span class="stringliteral">&quot;Soap Processing&quot;</span> &lt;&lt; <a class="code" href="namespaceXmlUtils.html#ae0e3faa27567770a885ba4e4e187844e">XmlUtils::dbsp</a> &lt;&lt; s &lt;&lt; endl;
<a name="l00500"></a>00500 }
<a name="l00501"></a>00501 
<a name="l00502"></a>00502 <span class="keywordtype">void</span>
<a name="l00503"></a><a class="code" href="classWsdlPull_1_1Soap.html#a782029b39d2c817770be725fc537a8f9">00503</a> <a class="code" href="classWsdlPull_1_1Soap.html#a782029b39d2c817770be725fc537a8f9">Soap::setSchemaPath</a>(<span class="keyword">const</span> std::string &amp; schemaPath)
<a name="l00504"></a>00504 {
<a name="l00505"></a>00505   schemaPath_ = schemaPath;
<a name="l00506"></a>00506 }
<a name="l00507"></a>00507 
<a name="l00508"></a>00508 }
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>