Results 1 to 2 of 2

Thread: PHP create context header

  1. #1
    bookatechie is offline New Member
    Join Date
    May 2007
    Posts
    3
    Rep Power
    8

    Default PHP create context header

    This is what I got so far but it doesnt work.

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

    $soapClient->__setSoapHeaders($soapHeader);


    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!

  2. #2
    bookatechie is offline New Member
    Join Date
    May 2007
    Posts
    3
    Rep Power
    8

    Default

    I keep trying to post the request that needs to be created but the forum won't let me so maybe if I only post the context part it will work.

    <soap:Header>
    <context xmlns="urn:zimbra">
    <authToken>authToken goes here</authToken>
    </context>
    </soap:Header>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP SOAP create appointment example
    By AddGun in forum Developers
    Replies: 13
    Last Post: 09-27-2010, 04:41 PM
  2. Fedora 5: Could not create the Java virtual machine
    By mi2enno in forum Installation
    Replies: 6
    Last Post: 06-01-2007, 03:16 AM
  3. php CreateAccountRequest via SOAP
    By bookatechie in forum Developers
    Replies: 2
    Last Post: 05-02-2007, 11:28 AM
  4. Opensource backup Question.
    By nfear24 in forum Administrators
    Replies: 3
    Last Post: 03-31-2007, 11:47 PM
  5. Return-Path header and PHP mail()
    By yogel in forum Installation
    Replies: 4
    Last Post: 02-22-2007, 10:22 PM

Posting Permissions

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