|
@@ -1376,7 +1376,7 @@ public:
|
|
|
if (name.isEmpty())
|
|
|
{
|
|
|
const char *fmt = mlFmt==MarkupFmt_XML ? "XML" : "JSON";
|
|
|
- IException *E = MakeStringException(-1, "ERROR: Invalid %s received from %s:%d - %s queryName not found", fmt, peer, port, msg);
|
|
|
+ IException *E = MakeStringException(-1, "ERROR: Invalid %s queryName not found - received from %s:%d - %s", fmt, peer, port, msg);
|
|
|
logctx.logOperatorException(E, __FILE__, __LINE__, "Invalid query %s", fmt);
|
|
|
throw E;
|
|
|
}
|
|
@@ -1439,8 +1439,16 @@ public:
|
|
|
{
|
|
|
if (!name.isEmpty())
|
|
|
more = false;
|
|
|
- else if (headerDepth && streq(tag, "Header"))
|
|
|
- headerDepth--;
|
|
|
+ else if (headerDepth) //will never be true if !isSoap
|
|
|
+ {
|
|
|
+ const char *local = strchr(tag, ':');
|
|
|
+ if (local)
|
|
|
+ local++;
|
|
|
+ else
|
|
|
+ local = tag;
|
|
|
+ if (streq(local, "Header"))
|
|
|
+ headerDepth--;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
};
|