I have WSDL,
<xs:complexType name="merchantDetails"><xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="did" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="flowid" nillable="true" type="xs:string"/>
I am trying to send array as follows (var_dump).
object(merchantDetails)#3 
  ["did"]=>
  array(1) {
    [0]=>
    string(8) "81985801"
  }
  ["flowid"]=>
  array(1) {
    [0]=>
    string(16) "MerchantMOTOMID1"
  }
But __getLastRequest output does not show any tag for did or flowID.
Please help in case of how to send unbound data.
Following should do the trick if I read the WSDL-instructions correctly. Posting the desired SOAP-request would be very helpful...
$param = array(
  'did'=>'81985801',
  'flowid'=>'MerchantMOTOMID1'
)
$soap_instance->merchantDetails($param);
or
$param = new stdObject();
$param->did = '81985801';
$param->flowid = 'MerchantMOTOMID1';
$soap_instance->merchantDetails($param);
either one of them haven't been tested...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With