Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3793050
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:42:58+00:00 2026-05-19T12:42:58+00:00

Perhaps I’m just not writing idiomatic code for savon, so please feel free to

  • 0

Perhaps I’m just not writing idiomatic code for savon, so please feel free to straighten me out, but I was trying to make multiple requests on the same client, as demonstrated in

client=Savon::Client.new {
  wsdl.document=wsdl_path
}

r1=client.request(:company_get_report_suites) do
  wsse.credentials APP_CONFIG['omniture']['username'],APP_CONFIG['omniture']['shared_secret'],:digest
end

r2=client.request(:scheduling_get_reports_run_history) do
  wsse.credentials APP_CONFIG['omniture']['username'],APP_CONFIG['omniture']['shared_secret'],:digest
end

The second request ends up reusing the nonce. The point of the wsse nonce is to use it only once, so the service I’m calling complains that I’ve reused it and refuses to service the request. My first thought was to add a timestamp, but that didn’t help; in fact, the source code shows the nonce is used if set, and generated only if not previously set.

Obviously, if I must, I can create a new client, but that’s a rather heavy-weight operation and seems unlikely to be the normal way to create multiple requests off of the same client.

Is there a sensible workaround?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:42:59+00:00Added an answer on May 19, 2026 at 12:42 pm

    This makes me feel dirty, but if no one can suggest a better alternative, this does the trick:

    class Savon::WSSE
      def reset_nonce
        @nonce=nil
        @nonce=nonce
      end
    end
    
    r1=client.request(:company_get_report_suites) do
      wsse.reset_nonce
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Perhaps I'm just having trouble figuring out the callbackyness, but I can't figure out
Perhaps I'm not understanding completely, but I'm trying to get the {@link} inline PHPDoc
Perhaps not directly programming related, but definitely product / commercially related. And I can't
Perhaps I am missing something, but I am just learning javascript. My understanding of
Perhaps my brain is fried, but I'm writing a plugin that created an tweaks
Perhaps I'm being too ambitious here, but I'm trying to pass a shared_ptr back
Perhaps i am being stupid by asking this just now, but... I notice that
Perhaps I am just not using the correct terminology for Ruby (and if I
Perhaps I'm not aware of how for loop index variables get scoped, but I
Perhaps very simple, but not for me ;) How do i change the Picture

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.