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

  • Home
  • SEARCH
  • 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 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
I'm perhaps being a bit lazy asking this here, but I'm just getting started
Perhaps I'm just unaware of the competitors, but it seems when it comes to
Perhaps not a fully fledged programming quiestion, but to help drive the quality and
Perhaps I am not asking or searching for this correctly: I want to have
Perhaps I'm missing something with the concept of Extension Methods, but I cannot gain
Perhaps naively, I created a class (AdminDatabase) to handle connection to different MS-Access database
Perhaps this is a naive question. In my understanding, ASP.NET MVC cannot work with
Perhaps my question is similar in nature to this one: Do you use design

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.