nusoap .net silverlight

Help
Anonymous
2011-04-08
2013-06-06

  • Anonymous
    2011-04-08

    register code

    $server->register(
        'GetDevices',
        array(),
        array('return'=>'tns:DeviceArray'),
        $NAMESPACE, false, false, 'literal');
    

    datatypes code

    $server->wsdl->addComplexType('Image',
        'complexType',
        'struct',
        'all',
        '',
        array( 
                'Title' => array('name' => 'Title', 'type' => 'xsd:string'),
                'Url' => array('name' => 'Url', 'type' => 'xsd:string')
                )
            );
    
    $server->wsdl->addComplexType('Property',
        'complexType',
        'struct',
        'all',
        '',
        array( 
                'Title' => array('name' => 'Title', 'type' => 'xsd:string'),
                'Description' => array('name' => 'Description', 'type' => 'xsd:string'),
                'Value' => array('name' => 'Value', 'type' => 'xsd:string')
                )
            );
    
    $server->wsdl->addComplexType(
        'ImageArray',
        'complexType',
        'array',
        '',
        'SOAP-ENC:Array',
        array(),
        array(
                array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Image[]')
                ),
            'tns:Image'
            );
    
    $server->wsdl->addComplexType(
        'PropertyArray',
        'complexType',
        'array',
        '',
        'SOAP-ENC:Array',
        array(),
        array(
                array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Property[]')
                ),
            'tns:Property'
            );
    $server->wsdl->addComplexType('Device',
        'complexType',
        'struct',
        'all',
        '',
        array( 
                'Id' => array('name' => 'Id', 'type' => 'xsd:int'),
                'Title' => array('name' => 'Title', 'type' => 'xsd:string'),
                'Description' => array('name' => 'Description', 'type' => 'xsd:string'),
                'Images' => array('name' => 'Images', 'type' => 'tns:ImageArray'),
                'Properties' => array('name' => 'Images', 'type' => 'tns:PropertyArray')
            )
    );
    
     
  • lars
    lars
    2011-09-18

    Hi max,

    i've the exactly the same problem. currently i'm not able to solve that issue. did you solved the issue?

    Thanks and Cheers,
    Lars