Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-13-2007, 02:26 AM
Starter Member
 
Posts: 1
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.
Reply With Quote
  #2 (permalink)  
Old 06-15-2007, 04:23 PM
Former Zimbran
 
Posts: 26
Default

You can use SoapVar instead of SoapParam like below:

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


Mike
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.