• starwar992001
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

I am using Ruby interface to the SOAP API on Mac OS X.

Things are working pretty fine for me (Ruby 1.8.6, soap4r (1.5.8), activerecord-activesalesforce-adapter (2.0.0)).

For some reason though I cannot seem to get the queryMore to work for me.  See lines 44-46 here:

 http://pastie.org/247513

When I run this script I get the following:

$ ruby tst_query.rb
Account:  Fields = 106 Count = 556
"01g80000004iG1dAAE-200"
#<SOAP::Mapping::Object:0x663f000>: INVALID_QUERY_LOCATOR: invalid query locator (SOAP::FaultError)

What am I missing?

I even tried this:
      qloc = resp.result.queryLocator
resp = obj.queryMore(QueryLocator.new(qloc))

But it says:

tst_query.rb:46: uninitialized constant QueryLocator (NameError)

Any suggestions?

TIA,

- Shashank





  • August 05, 2008
  • Like
  • 0