8.15,
我可以连接我的微软网络服务,我可以很容易地用这个服务插入记录。我收到一个确认码作为记录插入的响应。但是我有编码问题。响应消息必须像这样1Exa9GwOIO6pP35l4TJ1Bw==
,但不是这样,我得到这样的响应 4�� u @
当我在浏览器上尝试此服务时,我得到了预期的响应,如1Exa9GwOIO6pP35l4TJ1Bw==
但是当我在带有 gsoap 的 android 设备上尝试它时,我得到了一个这样的响应4�� u @
我该如何解决这个编码问题?
TheGameSoapProxy service;
_ns1__PlayerRegisterResponse* response = new _ns1__PlayerRegisterResponse();
std::string telNO =m_pEditTel->getText();
std::string telefonIME = "111";
std::string simCardID = "222";
std::string Username = m_pEditName->getText();
std::string takim = Takim.c_str();
_ns1__PlayerRegister* ps = new _ns1__PlayerRegister();
ps->telefonNumarasi = &telNO;
ps->telefonIME = &telefonIME;
ps->simCardID = &simCardID;
ps->Username = &Username;
ps->takim = &takim;
if (service.PlayerRegister(ps, response) == SOAP_OK)
{
string *ptrSonuc = response->PlayerRegisterResult;
CCLog( (char*)ptrSonuc );
}