You need to sign in to do that
Don't have an account?
gaiser
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:
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) {Notice code after
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);
}
...
}
if (this.organizationId !== null)
condition.
It seems to me line 2 after the condition above shoule be
writer.writeNameValueNode("organizationId", this.organisationId);
good catch