Skip to content

Commit eaed608

Browse files
committed
Improve docs
1 parent 5aca7b6 commit eaed608

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ $transport = Psr18Transport::createForClient(
4646
);
4747
```
4848

49+
This middleware will convert your regular SOAP request into a multipart SOAP request that contains the request attachments.
50+
A response that contains attachments will be converted back into a regular SOAP response whilst storing a copy of the attachments.
51+
4952
### Adding attachments
5053

5154
Adding attachments to your request is done by using the `AttachmentsStorage` before sending your request to the SOAP server:
@@ -100,7 +103,7 @@ foreach ($attachments as $attachment) {
100103

101104
### XOP Includes
102105

103-
If you are using MTOM attachments in combination with XOP you can use the `XopIncludeEncoder` to work directly with attachments from within your SOAP objects.
106+
If you are using MTOM attachments in combination with [XOP](https://www.w3.org/TR/xop10/) you can use the `XopIncludeEncoder` to work directly with attachments from within your SOAP objects.
104107
This requires you to use the [php-soap/encoder](https://github.com/php-soap/encoder) pacakge:
105108

106109
```sh
@@ -119,7 +122,7 @@ EncoderRegistry::default()
119122
->addComplexTypeConverter(XopIncludeEncoder::XMLNS_XOP, 'Include', new XopIncludeEncoder($attachmentsStorage));
120123
```
121124

122-
This will allow you to use attachments directly from within your SOAP request and responses:
125+
This will allow you to use attachments directly from within your SOAP request and responses without the need of adding them to the `AttachmentStorage` manually:
123126

124127
```php
125128
use Phpro\ResourceStream\Factory\FileStream;

0 commit comments

Comments
 (0)