New question

Question:

Date: 21-07-2018 17:10:11 (In Spanish)

¿Por qué obtengo UnrecognizedPropertyException consumiendo Webservices (SOAP) con PHP?[Unresolved]

Hola amigos, necesito consumir un webservice con soap. Al momento de invocar un método recibo el siguiente error:

object(SoapFault)#9 (10) { ["message":protected]=> string(754) "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field 'Obligations', not marked as ignorable

El código con el que lo invoco es el siguiente:

$params = array(
              'token' => $TOKEN,
              'sign' => $SIGN,
              'paymentEntity' => 1001,
              'form' => array(
                  'formNumber' => 6042,
                  'idPaymentType' => 951,
                  'Obligations' => array( 
                                         'Taxes' => array(
                                                          'amount' => 602.0,
                                                          'tax' => 6041
                                                         )
                                        )
                               )                
                   );

$results_Request = $client_form->createForm($params);


supongo es como envío los parámetros. Agradecería cualquier ayuda.
Tags: PHP - SOAP Votes: 0 - Answers: 1 - Views: 6 Share on: Google Facebook Twitter LinkedIn Link
 

Answers:

  • Date: 25-09-2018 04:45:17 Deberías mirar el WSDL a ver si existe ese parámetro y si está bien escrito. Por ejemplo, no será "obligations" en lugar de "Obligations"?   Votes: 0 - Link answer
     
To actively participate in the community first must authenticate, enter the system.Sign In
 
frjcbbae garagebible.com