Menu

#21 Return of a ComplexType doesn't work without PhpWsdl caching

New
nobody
None
Medium
Defect
2013-06-17
2013-01-23
Anonymous
No

Originally created by: g.pole...@planet-cards.com

What steps will reproduce the problem?
1. add a method that returns a ComplexTypeDemo object in class.soapdemo.php
2. disable PhpWsdl caching with the PhpWsdl::CreateInstance third parameter set to null (i.e, in demo3.php)
3. call this method with a test script, dump result and xml response

What is the expected output? What do you see instead?

The complextype should be returned in the soap message (so that the soap client create the right object)
The returned type is SOAP-ENC:Struct instead of the complextype, then the returned object is stdClass in php

What version of the product are you using? On what operating system?

php-wsdl-2.3 ; php 5.3.3

Please provide any additional information below.

Same problem with RunQuickMode() because it doesn't use PhpWsdl cache i guess

Discussion

  • Anonymous

    Anonymous - 2013-04-11

    Originally posted by: johntheb...@gmail.com

    This seems to be related to where the cache folder is created. If I put the WSDL cache files in the same directory as my scripts, it works fine. If I put them in the cache/ folder below that, it doesn't work. The WSDL cache file is created either way, and is identical, but I get the error if the file is under the cache/ folder.

     
  • Anonymous

    Anonymous - 2013-06-17

    Originally posted by: mczyzew...@gmail.com

    Interesting... It seems as if the cache path must be specified with either '.' or '/' as a first character, otherwise PhpWsdl tries to prepend the cache path twice when it creates cache files and craps out with a PHP Warning. Curious should read through PhpWsdl->WriteWsdlToCache(), line ~2074 (in php-wsdl-2.3). Workaround: specify './cache' instead of 'cache' as cache dir in the PhpWsdl::CreateInstance();

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.