title: How can I add SOAP Headers to a WSDL generated Borland C++ Builder 6 application
body: <p>Using a WSDL that requires a SOAP HEADER for Authentication (fragment below) code that gets generated when creating a web service client via the "WSDL Importer" has no concept of the Authentication Headers and there are no examples in BCB6 C++ Examples/WebServices directories that show how, and nothing on Web that I can find.</p>
  
  <p>Anyone with BCB6 C++ (not Delphi) have an example of adding SOAP Headers to a TRemotable subclass?</p>
  
  <pre><code>&lt;s:element name="AuthenticationHeader" type="tns:AuthenticationHeader"/&gt;
  &lt;s:complexType name="AuthenticationHeader"&gt;
   &lt;s:complexContent mixed="false"&gt;
    &lt;s:extension base="tns:UserAuthHeader"&gt;
     &lt;s:sequence&gt;
      &lt;s:element minOccurs="0" maxOccurs="1" name="Function" type="s:string"/&gt;
      &lt;s:element minOccurs="1" maxOccurs="1" name="TimeOutMilliSec" type="s:int"/&gt;
     &lt;/s:sequence&gt;
    &lt;/s:extension&gt;
   &lt;/s:complexContent&gt;
  &lt;/s:complexType&gt;
  &lt;s:complexType name="UserAuthHeader"&gt;
   &lt;s:sequence&gt;
    &lt;s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string"/&gt;
    &lt;s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string"/&gt;
   &lt;/s:sequence&gt;
   &lt;s:anyAttribute/&gt;
  &lt;/s:complexType&gt;
  </code></pre>