You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
49
52
### Adding attachments
50
53
51
54
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) {
100
103
101
104
### XOP Includes
102
105
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.
104
107
This requires you to use the [php-soap/encoder](https://github.com/php-soap/encoder) pacakge:
105
108
106
109
```sh
@@ -119,7 +122,7 @@ EncoderRegistry::default()
119
122
->addComplexTypeConverter(XopIncludeEncoder::XMLNS_XOP, 'Include', new XopIncludeEncoder($attachmentsStorage));
120
123
```
121
124
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:
0 commit comments