actually, the <context> element is always in the "urn:zimbra" namespace.
If you run:
Code:
zmprov -d createAccount {name} {password} You'll see the SOAP it sends:
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<authToken>...</authToken>
<sessionId id="317">317</sessionId>
</context>
</soap:Header>
<soap:Body>
<CreateAccountRequest xmlns="urn:zimbraAdmin">
<name>user9@slapshot.local</name>
<password>test123</password>
</CreateAccountRequest>
</soap:Body>
</soap:Envelope> Is it possible to dump the outgoing SOAP in PHP to compare? Another option is turn on debugging in the server.
I do that by editing log4j.properties (/opt/zimbra/conf) and adding:
Code:
log4j.logger.zimbra.soap=DEBUG
Then it should log every soap packet in/out of the server in the /opt/zimbra/log/mailbox.log file.