|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27700 complexType parameters not received by SOAP server
Submitted: 2004-03-25 13:48 UTC Modified: 2004-04-02 01:21 UTC
From: fjortiz at comunet dot es Assigned: dmitry (profile)
Status: Not a bug Package: SOAP related
PHP Version: 5.0.0RC1 OS: Windows 2000 server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fjortiz at comunet dot es
New email:
PHP Version: OS:


 [2004-03-25 13:48 UTC] fjortiz at comunet dot es
Hi I'm trying to send a input parameter like this

/* client */
class Mail {

	var $From;
	var $arrTo;	// array 
	var $Subject;
	var $Body;

	function Mail($From, $arrTo, $Subject, $Body)	{

$client = new SoapClient("mail.wsdl");
$obj=new Mail("",Array("",""),"Subj","Body");
/* end client code */

This works fine, as it creates this Request:


But the server doesn't get all the arrTo items. This is what it takes:

/* SOAP server */
class ServiceWrapper {
function SendMail($obj) { 
/* if you dump this $obj, you get this:
stdClass Object
    [Fom] =>
    [arrTo] => stdClass Object
            [item] =>

    [Subject] => Subj
    [Body] => Body



So you see that server "forgets" about item #1 of the array.
Hope it helps.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-01 05:40 UTC]

I think the problem in "mail.wsdl". Can you post it here.
 [2004-04-01 09:39 UTC] fjortiz at comunet dot es
I had a deeper look and got an eval copy of XMLSpy, and after using it to validate the WSDL, I must say you are right, it was my WSDL file which was wrong.

Sorry dmitry for the disturbances.
 [2004-04-02 01:21 UTC]
The problem was because of incorrect WSDL file.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 15:03:49 2023 UTC