user723826
user723826

Reputation: 81

php soap maxoccurs=unbounded

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.

Upvotes: 6

Views: 1954

Answers (3)

Sergei
Sergei

Reputation: 46

//You should try to send like this

$arOperationFilter = array(
    'did' => array('81985801','81985802','...')
);


$client = new SoapClient($your_url, $arSoapOptions);

$result = $client->yourSoapOperation($arOperationFilter);

Upvotes: 0

sarte
sarte

Reputation: 325

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

Upvotes: 1

Jeff Bootsholz
Jeff Bootsholz

Reputation: 3068

set the maxOccurs as bounded

TO be exact, please post your complete source code

Upvotes: 0

Related Questions