Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ before_script:
- composer self-update
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
- composer update --no-interaction --prefer-source
- echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/5.6/etc/php.ini
- ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh
- ./src/BeSimple/SoapClient/Tests/bin/axis.sh

Expand Down
6 changes: 3 additions & 3 deletions src/BeSimple/SoapClient/SoapClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function withProxy($host, $port, $login = null, $password = null, $auth =
*/
public function withBase64Attachments()
{
$this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_BASE64;
$this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_BASE64;

return $this;
}
Expand All @@ -221,7 +221,7 @@ public function withBase64Attachments()
*/
public function withSwaAttachments()
{
$this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_SWA;
$this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_SWA;

return $this;
}
Expand All @@ -233,7 +233,7 @@ public function withSwaAttachments()
*/
public function withMtomAttachments()
{
$this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_MTOM;
$this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_MTOM;

return $this;
}
Expand Down