notfalsedev / laravel-soap

A soap client wrapper for Laravel
MIT License
634 stars 122 forks source link

how send xml when invoke the call. #126

Closed moraoscar closed 7 years ago

moraoscar commented 7 years ago

Hi, I try to consumer the next SoapService http://200.41.57.109:8086/m4.in.wsint/services/M4WSIntSR?wsdl specifically the method sendSMS, but always return error -105 same of the service, this error make reference can't logged because the credential are invalid, but the creadential are good and the support of company services verified the information. So I decide, testing the service and credencial the Boomerang Soap in google chrome and this working perfectly with the next body:

? ? ? ? Then my cuestion is, how send this body with your soapwrapper? I hope you can help me. Thanks.
notfalsedev commented 7 years ago

You need a custom header for this.

$this->soapWrapper->add('Currency', function ($service) {
      $service
        ->customHeader(--PUT-HEADER-HERE--);
    });