Get return from xml webservice - SOAP

Asked

Viewed 253 times

0

I’m accessing a webservice with SOAP and I need to get the contents of the tag - Message

Follow the return of the webservice.

/var/www/html/particular/webservice/retphp:28:
object(stdClass)[2]
  public 'Longout' => string '<WEBSERVICE_RET xmlns="">
    <Codigo>000</Codigo>
    <Mensagem>JVBERi0xLjQKJeLjzvU3VidHlwZS9JbWFnZS9CaXRzUGVyQ29tcG9uZW50IDgvV2lkdGggMTc4L0xlbmd0aCA0MDA4L0hlaWdodCAxOTIvRmlsdGVyL0ZsYXRlRGVjb2RlPj5zdHJlYW0KeJztnT+oJUkVxltEEEQEExkRRBBhEUwemBiLIBvJhouZD0QjBYMFwUzYwGgCB0QYFmRhWZARkwVZWEQZ6FCETUxkwVgwLu/cul23uuqcr05V17/uro/DcN99/edUnV99VdX33V2lhg6ix4eH1ikMdac+qZiuap3FSdUnElqf/PZJ6xTOqAsSPVOhro7ROoVzqX8k1LCLutoFEurqFRcwhmNU0F6Q0LpQMRyjtDQSO6JC28UAo7R2'... (length=20439)
  • 1

    the api returned this string ? Tries to use -- simplexml_load_string($string); This will make the string turn xml and then you access as array

  • blz, I’m gonna try.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.