Trying to call SOAP Function

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


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">
<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"/>

an the function is this:
<wsdl:message name="getInfoRequest1">
<wsdl:part name="mainData" type="impl:MainData"/>
<wsdl:part name="id" type="xsd:long"/>

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-
Quoted text here. Click to load it

I can't find any working example showing how to handle complex types
and longs in parameters.
Can anybody help?

many thanks


Site Timeline