I have a webservice I need to call which contains a <soap12:Header> element within its XML.
In calling the webservice I will be doing so using the HttpRequest and HttpResponse apex classes.
the HttpRequest class has a method called setHeader.
In examples I have seen it is used to set attributes such as content type in the following
HttpRequest req = new HttpRequest();
There is a setBody method for HttpRequest also.
Should my SOAP Header actually go with the rest of my XML in the setBody method?