Results 1 to 2 of 2

Thread: PHP Soap change password

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Rep Power
    8

    Default 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.

  2. #2
    Join Date
    Jul 2006
    Location
    San Francisco, CA
    Posts
    26
    Rep Power
    9

    Default

    You can use SoapVar instead of SoapParam like below:

    $params = array ( new SoapVar('<account by="name">'.$email.'</account>', XSD_ANYXML) )


    Mike

Similar Threads

  1. [SOLVED] Simple SOAP Admin Example In PHP
    By mikes2277 in forum Developers
    Replies: 11
    Last Post: 07-23-2011, 02:00 AM
  2. PHP SOAP vs Zimbra
    By Corey Scott in forum Developers
    Replies: 14
    Last Post: 02-05-2011, 04:41 AM
  3. external LDAP, password change
    By zaf in forum Administrators
    Replies: 7
    Last Post: 04-30-2010, 05:29 AM
  4. php CreateAccountRequest via SOAP
    By bookatechie in forum Developers
    Replies: 2
    Last Post: 05-02-2007, 12:28 PM
  5. SSH Zimbra User Password - need to change
    By FastEddy760 in forum Administrators
    Replies: 2
    Last Post: 05-25-2006, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •