#35593 [Bgs]: SOAP Response is incorrect

From: Date: Sat, 10 Dec 2005 06:31:47 +0000
Subject: #35593 [Bgs]: SOAP Response is incorrect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90190@lists.php.net to get a copy of this message
 ID:               35593
 User updated by:  lixd at dragonsoft dot com dot cn
 Reported By:      lixd at dragonsoft dot com dot cn
 Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Win2000
 PHP Version:      5CVS-2005-12-09 (snap)
 Assigned To:      dmitry
 New Comment:

yeah...
thank you so much....


Previous Comments:
------------------------------------------------------------------------

[2005-12-09 19:54:13] dmitry@php.net

SOAP's Grant() operation should returns "GrantResponse" element, but
you tries to return "GrantResult" element directly. This is your
mistake.

The proper server code:

function Grant($req){
  $res = new GrantResult();
  $res->APID = $req->APID;
  return array("GrantResult"=>$res);
}

Now you will get that you expect.

------------------------------------------------------------------------

[2005-12-09 09:06:52] sniper@php.net

Dmitry, can you help?

------------------------------------------------------------------------

[2005-12-08 08:42:02] lixd at dragonsoft dot com dot cn

thanks for you reply. I try it and hope it can work,but I am
disappointed...

------------------------------------------------------------------------

[2005-12-08 08:22:34] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip



------------------------------------------------------------------------

[2005-12-08 04:11:25] lixd at dragonsoft dot com dot cn

I am sorry for huge text
you can get full code here
http://218.85.132.173/vnet.rar

or view test.wsdl here
http://218.85.132.173/test.wsdl

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35593

-- 
Edit this bug report at http://bugs.php.net/?id=35593&edit=1


Thread (9 messages)

« previous php.bugs (#90190) next »