function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gaisergaiser 

Incorrect soap header definition in soap/ajax/9.0/connection.js.writeHeader(writer, headerNs)

Looks like a copy/paste related problem
https://na4.salesforce.com/soap/ajax/9.0/connection.js
method
sforce.Connection.prototype.writeHeader = function(writer, headerNs)

Code:
sforce.Connection.prototype.writeHeader = function(writer, headerNs) {
writer.startHeader();

writer.writeNamespace(headerNs, "sfns");

if (this.sessionId !== null) {
writer.writeStartElement("SessionHeader", headerNs);
writer.writeNameValueNode("sessionId", this.sessionId);
writer.writeEndElement("SessionHeader", headerNs);
}
if (this.organizationId !== null) {
writer.writeStartElement("LoginScopeHeader", headerNs);
writer.writeNameValueNode("organizationId", this.sessionId);
writer.writeEndElement("LoginScopeHeader", headerNs);
}
...
}
Notice code after
if (this.organizationId !== null)
condition.
It seems to me line 2 after the condition above shoule be
writer.writeNameValueNode("organizationId", this.organisationId);


 

Ron HessRon Hess
It does indeed!, thank you for reporting this,
good catch