## SoapMessage::SetHeaders method


Sets the collection of the SOAP headers.

```cpp
void System::Web::Services::Protocols::SoapMessage::SetHeaders(System::SharedPtr<SoapHeaderCollection> headers)
```


| Parameter | Type | Description |
| --- | --- | --- |
| headers | System::SharedPtr\<SoapHeaderCollection\> | The collection of the SOAP headers to set. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [SoapHeaderCollection](../../soapheadercollection/)
* Class [SoapMessage](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.PDF for C++](../../../)
