Patch level : 10.0 0038

Files correlati     :
Ricompilazione Demo : [ ]
Commento           :

Modificato il nome del metodo SOAP in postman e memorizzato il nome della tabella


git-svn-id: svn://10.65.10.50/trunk@16539 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2008-04-24 07:35:22 +00:00
parent 8d5b8401cc
commit 116dbdc76f
2 changed files with 21 additions and 9 deletions

View File

@ -974,7 +974,7 @@ bool TSocketClient::HttpSoap(CONNID id, const char* cmd)
if (content.find("<SOAP-ENV") < 0) // Controllo se c'è tutto
{
content.insert("<SOAP-ENV:Envelope>\n<SOAP-ENV:Body>\n");
content << "</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\r\n";
content << "</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\r\n\r\n";
}
TString buf(4096);

View File

@ -209,15 +209,27 @@ static int write_xml(TConfig& cfg, void* jolly)
if (logicnum > 0)
{
child.SetAttr("LogicNumber", logicnum);
child.SetAttr("TableName", logic2table(logicnum));
if (logicnum > LF_TAB)
child.SetAttr("TableName", logic2table(logicnum));
else
{
TString table;
FOR_EACH_ASSOC_STRING(vars, hobj, key, val)
if (logicnum <= LF_TAB && strcmp(key, "COD") == 0)
{
table = val;
break;
}
child.SetAttr("TableName", table);
}
if (rownum > 0)
child.SetAttr("RowNumber", rownum);
}
TString s;
FOR_EACH_ASSOC_STRING(vars, hobj, key, val)
if (val && *val)
{
@ -354,10 +366,10 @@ bool TPostman::dispatch_transaction(const TRectype& rec,
bool ok = true;
item.SetTag("Campo");
item.SetTag("m:CampoTransaction");
trans.for_each_paragraph(write_xml, &item);
item.Write(stream, 0);
item.Write(stream, 2);
stream << '\0';
#ifdef DBG
@ -378,11 +390,11 @@ bool TPostman::dispatch_transaction(const TRectype& rec,
<< "Content-Type: text/xml; charset=utf-8\n"
<< "Content-length: " << len << "\n"
<< "SOAPAction: \"/\"\r\n\r\n"
<< "<SOAP-ENV:Envelope>\n<SOAP-ENV:Body>\n";
<< "<SOAP-ENV:Envelope>\n<SOAP-ENV:Body>\r\n";
item.Write(f, 0);
item.Write(f, 2);
f << "\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\r\n";
f << "\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\r\n\r\n";
#endif
FOR_EACH_TOKEN(soap_dest, r)