2

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: {

     }

1 Answer 1

1

You can add the SOAP action to your client call:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.