Ok ,but what do you do if your header will not fit into the string? I have the following header XML given by the service.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<Service>PointOfSale</Service>
<Activity>Authorization</Activity>
<SourceSystem>Connect2</SourceSystem>
<SourceID>1000</SourceID>
<ISFmsgVersion>2.0</ISFmsgVersion>
<ActivityMsgVersion>1.0</ActivityMsgVersion>
<Locale>en_US</Locale>
<TimeStamp/>
</SOAP-ENV:Header>
But when I concatenate it it loses the last three lines. any ideas?