Structure de données NUSOAP PHP WSDL
sgenou
Messages postés
1
Date d'inscription
Statut
Membre
Dernière intervention
-
Darkito Messages postés 1191 Date d'inscription Statut Membre Dernière intervention -
Darkito Messages postés 1191 Date d'inscription Statut Membre Dernière intervention -
Bonjour, j'ai un soucis avec une structure de données WSDL, j'utilise NuSOAP PHP, voici ce que j'ai fait;
$GLOBALS['server']->wsdl->addComplexType(
'ScoresInfos',
'complexType',
'struct',
'all',
'',
array('user_id' => array('name' => 'user_id', 'type' => 'xsd:int'),
'course_id' => array('name' => 'course_id', 'type' => 'xsd:int'),
'scosinfos' => array('name' => 'scosinfos', 'type' => 'tns:ScoInfosArray'))
);
$GLOBALS['server']->wsdl->addComplexType(
'ScoInfosArray',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:ScoInfos[]')
),
'tns:ScoInfos'
);
$GLOBALS['server']->wsdl->addComplexType(
'ScoInfos',
'complexType',
'struct',
'all',
'',
array('sco_id' => array('name' => 'sco_id', 'type' => 'xsd:int'),
'interactions' => array('name' => 'interactions', 'type' => 'tns:InteractionInfosArray'))
);
$GLOBALS['server']->wsdl->addComplexType(
'InteractionInfosArray',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:InteractionInfos[]')
),
'tns:InteractionInfos'
);
$GLOBALS['server']->wsdl->addComplexType(
'InteractionInfos',
'complexType',
'struct',
'all',
'',
array('label' => array('name' => 'label', 'type' => 'xsd:string'),
'learner_response' => array('name' => 'learner_response', 'type' => 'xsd:string'),
'correct_response' => array('name' => 'correct_response', 'type' => 'xsd:string'),
'latency' => array('name' => 'course_nb_acces', 'type' => 'xsd:int'),
'type' => array('name' => 'type', 'type' => 'xsd:string'),
'weighting' => array('name' => 'weighting', 'type' => 'xsd:int'),
'result' => array('name' => 'result', 'type' => 'xsd:int'),
'description' => array('name' => 'description', 'type' => 'xsd:string'))
);
Cette structure n'est pas bonne et je ne comprend pas pourquoi... Merci d'avance de votre aide.
$GLOBALS['server']->wsdl->addComplexType(
'ScoresInfos',
'complexType',
'struct',
'all',
'',
array('user_id' => array('name' => 'user_id', 'type' => 'xsd:int'),
'course_id' => array('name' => 'course_id', 'type' => 'xsd:int'),
'scosinfos' => array('name' => 'scosinfos', 'type' => 'tns:ScoInfosArray'))
);
$GLOBALS['server']->wsdl->addComplexType(
'ScoInfosArray',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:ScoInfos[]')
),
'tns:ScoInfos'
);
$GLOBALS['server']->wsdl->addComplexType(
'ScoInfos',
'complexType',
'struct',
'all',
'',
array('sco_id' => array('name' => 'sco_id', 'type' => 'xsd:int'),
'interactions' => array('name' => 'interactions', 'type' => 'tns:InteractionInfosArray'))
);
$GLOBALS['server']->wsdl->addComplexType(
'InteractionInfosArray',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:InteractionInfos[]')
),
'tns:InteractionInfos'
);
$GLOBALS['server']->wsdl->addComplexType(
'InteractionInfos',
'complexType',
'struct',
'all',
'',
array('label' => array('name' => 'label', 'type' => 'xsd:string'),
'learner_response' => array('name' => 'learner_response', 'type' => 'xsd:string'),
'correct_response' => array('name' => 'correct_response', 'type' => 'xsd:string'),
'latency' => array('name' => 'course_nb_acces', 'type' => 'xsd:int'),
'type' => array('name' => 'type', 'type' => 'xsd:string'),
'weighting' => array('name' => 'weighting', 'type' => 'xsd:int'),
'result' => array('name' => 'result', 'type' => 'xsd:int'),
'description' => array('name' => 'description', 'type' => 'xsd:string'))
);
Cette structure n'est pas bonne et je ne comprend pas pourquoi... Merci d'avance de votre aide.
A voir également:
- Structure de données NUSOAP PHP WSDL
- Fuite données maif - Guide
- Supprimer les données de navigation - Guide
- Logiciel calcul structure bois gratuit - Télécharger - Architecture & Déco
- Easy php - Télécharger - Divers Web & Internet
- Trier des données excel - Guide