function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sanjeev kakaraparthisanjeev kakaraparthi 

How to find SOAPAction value from a wsdl file ?

I am trying to call a SOAP based service using http callouts  and i am hitting an exception 'Server did not recognize the value of HTTP Header SOAPAction'.  I have tried giving empty value as some of the blogs suggested but still hitting the issue. I would like to know on how to indentify the SOAP Action value from the WSDL file. Can any one provide a solution and give me an example on this 
Daniel BallingerDaniel Ballinger

I've found in the past that HttpRequest won't send the SOAPAction header if you pass it the empty string. See Missing SOAP action header (http://salesforce.stackexchange.com/a/49273/102).

Instead you need to pass a value, any value, and hope that the service you are targeting doesn't care what the value is.

Alternatively, can you share the WSDL of the service you are trying to call? I've got an alternative tool to the native WSDL2Apex that often has wider support. See http://www.fuseit.com/explorer