Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php soap maxoccurs=unbounded

Tags:

php

soap

wsdl

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.

like image 663
user723826 Avatar asked Aug 31 '12 16:08

user723826


1 Answers

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...

like image 62
sarte Avatar answered Nov 12 '22 08:11

sarte