i am trying too call a soap function that expect to parameters. One is
a complex type and one is xsd_long. Unfortunately i can't get anything
working. The complex type is this:
<complexType name="MainData">
<sequence>
<element name="customer" nillable="true" type="xsd:string"/>
<element name="password" nillable="true" type="xsd:string"/>
<element name="id" type="xsd:long"/>
<element name="hash" nillable="true" type="xsd:base64Binary"/>
</sequence>
</complexType>
an the function is this:
<wsdl:message name="getInfoRequest1">
<wsdl:part name="mainData" type="impl:MainData"/>
<wsdl:part name="id" type="xsd:long"/>
</wsdl:message>
now i am trying to call this funtions like this
$a_dat = array('customer' =$c_customerID, 'password' =>
$c_customerPW, 'id' =0, 'hash' ='');
$client->getInfo($a_dat, 1212);
I am getting an error that says:
SOAP-ERROR: Encoding: object hasn't 'id' property in /srv/www/htdocs/
soap.php:47 Stack trace: #0 [internal function]: SoapClient-
>__call('getInfo', Array) #1 /srv/www/htdocs/soap.php(47): SoapClient-I can't find any working example showing how to handle complex types
getInfo(Array) #2 {main}
and longs in parameters.
Can anybody help?
many thanks
bernhard