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:
parent
8d5b8401cc
commit
116dbdc76f
@ -974,7 +974,7 @@ bool TSocketClient::HttpSoap(CONNID id, const char* cmd)
|
|||||||
if (content.find("<SOAP-ENV") < 0) // Controllo se c'è tutto
|
if (content.find("<SOAP-ENV") < 0) // Controllo se c'è tutto
|
||||||
{
|
{
|
||||||
content.insert("<SOAP-ENV:Envelope>\n<SOAP-ENV:Body>\n");
|
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);
|
TString buf(4096);
|
||||||
|
@ -209,8 +209,20 @@ static int write_xml(TConfig& cfg, void* jolly)
|
|||||||
if (logicnum > 0)
|
if (logicnum > 0)
|
||||||
{
|
{
|
||||||
child.SetAttr("LogicNumber", logicnum);
|
child.SetAttr("LogicNumber", logicnum);
|
||||||
|
if (logicnum > LF_TAB)
|
||||||
child.SetAttr("TableName", logic2table(logicnum));
|
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)
|
if (rownum > 0)
|
||||||
child.SetAttr("RowNumber", rownum);
|
child.SetAttr("RowNumber", rownum);
|
||||||
@ -354,10 +366,10 @@ bool TPostman::dispatch_transaction(const TRectype& rec,
|
|||||||
|
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
item.SetTag("Campo");
|
item.SetTag("m:CampoTransaction");
|
||||||
trans.for_each_paragraph(write_xml, &item);
|
trans.for_each_paragraph(write_xml, &item);
|
||||||
|
|
||||||
item.Write(stream, 0);
|
item.Write(stream, 2);
|
||||||
stream << '\0';
|
stream << '\0';
|
||||||
|
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
@ -378,11 +390,11 @@ bool TPostman::dispatch_transaction(const TRectype& rec,
|
|||||||
<< "Content-Type: text/xml; charset=utf-8\n"
|
<< "Content-Type: text/xml; charset=utf-8\n"
|
||||||
<< "Content-length: " << len << "\n"
|
<< "Content-length: " << len << "\n"
|
||||||
<< "SOAPAction: \"/\"\r\n\r\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
|
#endif
|
||||||
|
|
||||||
FOR_EACH_TOKEN(soap_dest, r)
|
FOR_EACH_TOKEN(soap_dest, r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user