Holas!
Estoy laburando con SOAP y tengo un problema.
Estaba utilizando SOAP para enviar 3 datos y recuperar 1, ahora debo recuperar 2 y estoy teniendo problemas...
Parte del WSDL se ve asi:
Código HTML:
- <xsd:complexType name="ConsultaToken">
- <xsd:all>
<xsd:element name="tipo" type="xsd:int" />
<xsd:element name="token" type="xsd:string" />
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
- <message name="ValidateRequest">
<part name="iddc" type="xsd:string" />
<part name="idp" type="xsd:int" />
<part name="pw" type="xsd:string" />
</message>
- <message name="ValidateResponse">
<part name="return" type="tns:ConsultaToken" />
</message>
<portType name="PServicesPortType">
<operation name="Validate">
<input message="tns:ValidateRequest"/>
<output message="tns:ValidateResponse"/>
</operation>
</portType>
Yo le envío:
Código PHP:
$aParametros = array("iddc" => $idcentro,"idp" => $idp,"pw" => $pw);
$respuesta = $oSoapClient->__call("Validate", $aParametros);
Y me devuelve este error :S
Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: Violation of encoding rules in C:\...\public_html\services\ws\ws.php:14 Stack trace: #0 C:\...\public_html\services\ws\ws.php(14): SoapClient->__call('Validate', Array) #1 C:\...\public_html\services\login.php(7): autenticar('5', '04000029', '0500') #2 {main} thrown in C:\...\public_html\services\ws\ws.php on line 14
Alguien tiene idea de que le pasa a esto? :S
Muchisimas gracias!