| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull Requests | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
Description: ------------ Hi, I found a problem when calling a method of a web service with a parameter defined like this: <xsd:complexType name="FormDefinitionTO"> <xsd:sequence> <xsd:element maxOccurs="unbounded" minOccurs="0" name="activeEmails" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:complexType> When I call like this, it works. I receive an object with a list of activeEmails: public function testList() { $formDefinitionTO = new FormDefinitionTO(); $formDefinitionTO->activeEmails = array('0' => 'test 1', '0' => 'test 2'); $user = $this->soapClient->testList($formDefinitionTO); } But if I change the array keys (for example): public function testList() { $formDefinitionTO = new FormDefinitionTO(); $formDefinitionTO->activeEmails = array('1' => 'test 1', '2' => 'test 2'); $user = $this->soapClient->testList($formDefinitionTO); } I have the following error Notice: Array to string conversion