title: gSoap C++ - C# deserialization issue
body: <p>I have defined a function called login that should return a token. The token has a security id which is a char*</p>
  
  <pre><code>SOAP_FMAC5 int SOAP_FMAC6 __afas__login(struct soap* env, afas__Login *afas__login, afas__LoginResponse *afas__loginResponse)
  {
  
     int ret = ServiceApp::GetServiceApp()-&gt;GetServiceImpl()-&gt;login(afas__login-&gt;user, afas__login-&gt;password);
  
     afas__loginResponse-&gt;error = soap_new_afas__Error(env, -1);
     afas__loginResponse-&gt;af__token = soap_new_af__Token(env, -1);
  
     if (ret == sERROR)
     {
        afas__loginResponse-&gt;error-&gt;code = afas__ErrorCode__NOTLOGGEDIN;
     }
     else
     {
        afas__loginResponse-&gt;error-&gt;code = afas__ErrorCode__SUCCESS;
  
        afas__loginResponse-&gt;af__token-&gt;sessionId = soap_strdup(env, soap_int2s(env, ret));
        afas__loginResponse-&gt;af__token-&gt;securityId = soap_strdup(env, afas__login-&gt;password);
  
        afas__loginResponse-&gt;af__token-&gt;userName = soap_strdup(env, afas__login-&gt;user);
     }
  
     return SOAP_OK;
  
  }
  </code></pre>
  
  <p>On the client side I have a call to this :</p>
  
  <pre><code>AuthenticationServiceClient a = new AuthenticationServiceClient();
  Login login = new Login();
  login.user = "test";
  login.password = "test";
  LoginResponse lr = a.login(login);
  
  string securityId = lr.token.sessionId
  </code></pre>
  
  <p>The problem is that secuirtyId is null. Somehow it doesn't get deserialized.
  On the other hand, the error Code, which is an integer is deserialized correctly.</p>
  
  <p>Any suggestions ?</p>