Created
July 26, 2011 15:07
-
-
Save luisdalmolin/1106969 to your computer and use it in GitHub Desktop.
Solução SOAP Header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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