Request Parameter Attributes

  • Gabriel Spiteri

    Gabriel Spiteri - 2014-03-17

    So I am using new soap to call a webserivce. One of the parameters is an array of complex object. This complex object is an abstract class so one has to specify what kind of class you want to initialize. This is done with the following XML

        <dat:CampaignServiceFilter i:type="dat:CampaignIDFilter">

    Mainly the problem is how using nusoap do I generate the part i:type="dat:CampaignIDFilter"

    So far I have done the following:

    $client = $this->_getClientObject($this->_getWSDL('CampaignService'));
    if (!empty($options['campaign_id'])) {
        $filters['CampaignServiceFilter'] = array(
            'CampaignID' => $options['campaign_id']
    $params = array(
        'CampaignsFilter' => $filters,
        'Paging' => array(
            'PageIndex' => $options['pageIndex'],
            'PageSize' => $options['pageSize'],
        'ShowCampaignExtendedInfo' => ($options['showExtendedInfo']) ? 'true' : 'false'
    $result = $client->call('GetCampaigns', $params);

    If you want to review the WSDL file of this service you can have a look here:

    • mango

      mango - 2014-03-17
      <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=gb2312"> </HEAD>



      This is an automatic reply, confirming that your e-mail was received.Thank you






Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks