1024programmer PHP In php, how to pass two parameters through soap (under ms-security)

In php, how to pass two parameters through soap (under ms-security)

In php, how to pass two parameters through soap, (under ms-security)


$xml = '
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
              ';

$header = new SoapHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'CallbackHandler', new SoapVar($xml, XSD_ANYXML), TRUE);

         $this->client = new SoapClient($wsdl);
         $this->client->__setSoapHeaders(array($header));

$userInfo = turnObjectToArray($this->client->__call('checkUser', array('username' => array('username' => 'username', 'password' => 'password'))));

As soon as I run the above code, an error message appears


SoapFault exception: [soap:Server] Fault occurred while processing. in

Later, during the continuous adjustment, the other party looked at the log and it showed that the username was passed but the password was not passed

When passing a parameter, the other party can receive it


$info = turnObjectToArray($this->client->__call('getClasses', array('gradeId' => array('gradeId' => $data['id']))));

How to pass two parameters? ? ?
——Solution——————–
Pay attention to capitalization !

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/in-php-how-to-pass-two-parameters-through-soap-under-ms-security-2/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索