title: requesting security token from STS with gSoap
body: <p>I'm using gSoap 2.8.17 with C++ and need to request a security token from the STS.</p>
  
  <p>I added wsee to my client code by following this:</p>
  
  <p>Run wsdl2h -t typemap.dat on a WSDL of a service that requires WS-Security headers. The typemap.dat file is used to recognize and translate Security header blocks for XML signature and encryption.
  Run soapcpp2 on the header file produced by wsdl2h.
  (Re-)compile stdsoap2.c/pp, dom.c/pp, smdevp.c, mecevp.c, wsseapi.c and the generated source files with the -DWITH_DOM and -DWITH_OPENSSL compile flags set. The smdevp.c, mecevp.c, and wsseapi.c files are located in the 'plugin' directory.</p>
  
  <p>I'm not clear how to add WS-Trust to my client code though.
  I generated WS-Trust.h like this
  wsdl2h -g -t ....\WS\WS-typemap.dat -x wsdl1.wsdl wsdl2.wsdl</p>
  
  <p>WS-Trust.h contains Request token functions but I don't see an implementation for these.
  /// Top-level root element "<a href="http://schemas.xmlsoap.org/ws/2005/02/trust" rel="nofollow">http://schemas.xmlsoap.org/ws/2005/02/trust</a>":RequestSecurityToken of type "<a href="http://schemas.xmlsoap.org/ws/2005/02/trust" rel="nofollow">http://schemas.xmlsoap.org/ws/2005/02/trust</a>":RequestSecurityTokenType.
  /// Note: use wsdl2h option -g to auto-generate a top-level root element declaration and processing code.</p>
  
  <p>Do I add WS-Trust.h (11 MB file) to my client proxy?</p>
  
  <p>What are the steps to enable a client to use WS-Trust?</p>