carbonr
carbonr

Reputation: 6067

How to pass custom url to SOAP Action in Savon

Im using savon 2.0 and the soap action url in the wsdl file is wrong. can i manually override the url for this action.

client = Savon.client do
      wsdl "http://something.com/someservice/aname.asmx?wsdl"
      convert_request_keys_to :camelcase 
      logger Rails.logger
      log_level :info
      log true
    end 

    response = client.call(:send_actions, message: {

     }

Upvotes: 2

Views: 1022

Answers (1)

Steffen Roller
Steffen Roller

Reputation: 3492

You can add the SOAP action to your client call:

response = client.call(
         :send_actions,
         message: {
         },
         soap_action: "my_action_as_string"
)

Upvotes: 1

Related Questions