This is the correct soap request to create a new user

<soap:Envelope xmlns:soap="">
<context xmlns="urn:zimbra">
<authToken>authToken goes here</authToken>
<CreateAccountRequest xmlns=\"urn:zimbraAdmin\">

I got a php page that will create this except the conetxt section with the authToken. This is what I got so far but it doesnt work.

$soapHeader = new SoapHeader('urn:zimbra',
new Context(
new SoapParam($authToken['authToken'], 'authToken'),


This gives me the following error...

Uncaught SoapFault exception: [soap:Client] no valid authtoken present

Does anyone know what the correct php syntax is to create the content section?

Thank you!