-
PHP Soap change password
Hi everybody,
I get some troubles with the attributes of xml tag. I would like it like that:
<GetAccountRequest>
<account by="name">anle@yahoo.com</account>
</GetAccountRequest>
here is my param:
$params = array(new SoapParam("anle@yahoo.com","account"));
But it show like that:
<GetAccountRequest>
<account>anle@yahoo.com</account>
</GetAccountRequest>
I don't know how to put by="name" into <account>. Anybody knows this issues, please help me. thank you very much. I use php.
-
You can use SoapVar instead of SoapParam like below:
$params = array ( new SoapVar('<account by="name">'.$email.'</account>', XSD_ANYXML) )
Mike