Skip to content

SoapClientBuilder options #102

Open
Open
@steve-ii

Description

@steve-ii

Hi guys,
Just noticed that there is a little mistake in the SoapClientBuilder class.
When adding Attachments, the code uses $this->options instead of $this->soapOptions.

public function withBase64Attachments()
{
    $this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_BASE64;

    return $this;
}

/**
 * SOAP attachment type SwA.
 *
 * @return \BeSimple\SoapServer\SoapServerBuilder
 */
public function withSwaAttachments()
{
    $this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_SWA;

    return $this;
}

/**
 * SOAP attachment type MTOM.
 *
 * @return \BeSimple\SoapServer\SoapServerBuilder
 */
public function withMtomAttachments()
{
    $this->options['attachment_type'] = Helper::ATTACHMENTS_TYPE_MTOM;

    return $this;
}

Need to be replaced by :

public function withBase64Attachments()
{
    $this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_BASE64;

    return $this;
}

/**
 * SOAP attachment type SwA.
 *
 * @return \BeSimple\SoapServer\SoapServerBuilder
 */
public function withSwaAttachments()
{
    $this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_SWA;

    return $this;
}

/**
 * SOAP attachment type MTOM.
 *
 * @return \BeSimple\SoapServer\SoapServerBuilder
 */
public function withMtomAttachments()
{
    $this->soapOptions['attachment_type'] = Helper::ATTACHMENTS_TYPE_MTOM;

    return $this;
}

Cheers !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions