Skip to content

Instantly share code, notes, and snippets.

@luisdalmolin
Created July 26, 2011 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisdalmolin/1106969 to your computer and use it in GitHub Desktop.
Save luisdalmolin/1106969 to your computer and use it in GitHub Desktop.
Solução SOAP Header
<?php
$xml = '<Credenciais xmlns="http://sofis.com.br/"><codigo>'.self::CODIGO.'</codigo><senha>'.self::SENHA.'</senha></Credenciais>';
$soapAuthVar = new SoapVar($xml, XSD_ANYXML, null, null, null);
$soapAuthHeader = new SoapHeader(self::WSDL, 'Credenciais', $soapAuthVar);
$this->soap->__setSoapHeaders( array($soapAuthHeader) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment