PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » SOAP » Bug #5057

how about

Details

Request #5057how about
Submitted2005-08-10 18:17 UTC
Fromalex at zebra-group dot ru
Assignedyunosh
StatusNo Feedback
PackageSOAP
PHP Version5.0.3
OSw2k3
Roadmaps(Not assigned)

Comments

[2005-08-10 18:17 UTC] alex at zebra-group dot ru

Description:
------------
/**
* XMLSpy2005:
* Cannot resolve declaration or definition 'arrayType' in namespace http://schemas.xmlsoap.org/soap/encoding/
* Disco.php
*/------------------------------------------------------------
function _arrayToNode($node_name = '', $array) {
...
foreach ($array as $child_node_name => $child_node_value) {
$return .= $i == 0 ? ">\n" : '';
/** VVV */
if ($i == 0 && $node_name === 'schema') {
$return .= '<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>';
}
/** ^^^ */
$return .= $this->_arrayToNode($child_node_name,$child_node_value);
$i++;
}
...
}

Test script:
---------------
/**
* zcmindex.cmd
*/
wsdl.exe /out:ZcmIndexService.cs /language:CS /username:adm /password:ssap http://zcm/zcmindex.service?wsdl

/**
* zcmindex.service
*/
class zcmindex extends zcmservice {
...
function zcmindex() {
$this->__typedef["{{$this->TNS}}site"] = array('index' => 'int', 'description' => 'string');
$this->__typedef["{{$this->TYPE_NAME_SPACE}}arrayOfSite"] = array(array('item'=>"{{$this->TYPE_NAME_SPACE}}site"));
...
}
...
}