From:             philipp at kolmann dot at
Operating system: Linux, Debian Sid
PHP version:      5.2.9
PHP Bug Type:     SOAP related
Bug description:  Exchange 2007: UpdateItem: Fatal error: SOAP-ERROR: Encoding: 
object hasn't 'Pa

Description:
------------
I am using PHP and SOAP to talk to a Exchange 2007 server. Adding items
works without a Problem. Now I wanted to update an Item:

The Request looks quite promising, but seems to fail some XML validation.

Regarding to the MS Docs
(http://msdn.microsoft.com/en-us/library/aa581022.aspx) The Path element is
an abstract element that is substituted by FieldURI. This seems not to
happen.

If needed I can add the wsdl-files.

Thanks
Philipp

Reproduce code:
---------------
$UpdateItem->MessageDisposition ="SaveOnly";
$UpdateItem->ConflictResolution="AutoResolve";
$UpdateItem->ItemChanges->ItemChange->ItemId->Id = $item->ItemId->Id;
$UpdateItem->ItemChanges->ItemChange->ItemId->ChangeKey =
$item->ItemId->ChangeKey;
$UpdateItem->ItemChanges->ItemChange->Updates->SetItemField->FieldURI->FieldURI
= "item:Sensitivity";
$UpdateItem->ItemChanges->ItemChange->Updates->SetItemField->Message->Sensitivity
= "Normal";

$res = $client->UpdateItem($UpdateItem);

Expected result:
----------------
Request beeing properly sent to Exchange Server.

Actual result:
--------------
stdClass Object
(
    [MessageDisposition] => SaveOnly
    [ConflictResolution] => AutoResolve
    [ItemChanges] => stdClass Object
        (
            [ItemChange] => stdClass Object
                (
                    [ItemId] => stdClass Object
                        (
                            [Id] =>
AAAeAHBrb2xtYW5uQGthbGVuZGVyLnR1d2llbi5hYy5hdABGAAAAAACkwH79RYBrRLOe5dwPwABJBwCWSqnpWEwlT7Z+LCzPQIE9AAAAAYXBAABeyHGqwz04TojssSJ14nFUADMmYzOVAAA=
                            [ChangeKey] =>
DwAAABYAAABeyHGqwz04TojssSJ14nFUADMmZDks
                        )

                    [Updates] => stdClass Object
                        (
                            [SetItemField] => stdClass Object
                                (
                                    [FieldURI] => stdClass Object
                                        (
                                            [FieldURI] =>
item:Sensitivity
                                        )

                                    [Message] => stdClass Object
                                        (
                                            [Sensitivity] => Normal
                                        )

                                )

                        )

                )

        )

)

Fatal error: SOAP-ERROR: Encoding: object hasn't 'Path' property in
addtermin.php on line 87

-- 
Edit bug report at http://bugs.php.net/?id=47924&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47924&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47924&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47924&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47924&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47924&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47924&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47924&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47924&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47924&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47924&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47924&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47924&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47924&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47924&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47924&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47924&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47924&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47924&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47924&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47924&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47924&r=mysqlcfg

Reply via email to