## SoapMessage::CollectHeaders method


Sets the internal collection of the SOAP headers.

```cpp
void System::Web::Services::Protocols::SoapMessage::CollectHeaders(System::SharedPtr<Object> target, System::ArrayPtr<System::SharedPtr<SoapHeaderMapping>> headers, SoapHeaderDirection direction)
```


| Parameter | Type | Description |
| --- | --- | --- |
| target | System::SharedPtr\<Object\> | The object to get the SOAP headers from. |
| headers | System::ArrayPtr\<System::SharedPtr\<SoapHeaderMapping\>\> | A collection of headers from which the internal collection will be filled. |
| direction | SoapHeaderDirection | The SOAP header direction. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Enum [SoapHeaderDirection](../../soapheaderdirection/)
* Class [SoapMessage](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.PDF for C++](../../../)
