lib/rforce/binding.rb in rforce-0.10 vs lib/rforce/binding.rb in rforce-0.11
- old
+ new
@@ -155,16 +155,16 @@
expanded = ''
@builder = Builder::XmlMarkup.new(:target => expanded)
expand(@builder, {method => args}, urn)
extra_headers = ""
-
+
# QueryOptions is not valid when making an Apex Webservice SOAP call
if !block_given?
extra_headers << (QueryOptions % @batch_size)
end
-
+
extra_headers << (AssignmentRuleHeaderUsingRuleId % assignment_rule_id) if assignment_rule_id
extra_headers << AssignmentRuleHeaderUsingDefaultRule if use_default_rule
extra_headers << MruHeader if update_mru
extra_headers << (ClientIdHeader % client_id) if client_id
@@ -209,10 +209,10 @@
# Check to see if INVALID_SESSION_ID was raised and try to relogin in
if method != :login and @session_id and content =~ /sf:INVALID_SESSION_ID/
login(@user, @password)
# repackage and rencode request with the new session id
- request = (Envelope % [@session_id, @batch_size, extra_headers, expanded])
+ request = (Envelope % [@session_id, extra_headers, expanded])
request = encode(request)
# Send the request to the server and read the response.
response = @server.post2(soap_url, request.lstrip, headers)