I want to get value in xml tag, how to do that?. I got an error with xml format when i run it using Guzzle 6 in laravel 5.7.
When i execute $res = $response->getBody()->getContents(); , i got error in xml like this :
<?xml version="1.0" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body >
<SOAP-ENV:Fault >
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Client Error</faultstring>
<detail>
<ResponseStatus>F</ResponseStatus>
<ResponseCode>2013</ResponseCode>
<ResponseText>Error while executing the request:
com.splwg.shared.common.ApplicationError: (Server Message)
Category: 9
Number: 260
Call Sequence: ;CIPOFALR;CIPOFALL;CIPOFACP
Program Name: CIPOFACP
Text: Field Activity ID 2445500899 Sequence 030 combination, duplicate key error
Description: This set of fields is a key on a database table. The combination of values as they currently stand is a duplication of an existing combination.
Table: CI_FA_LOG
Field: </ResponseText>
<ResponseData parm2="2445500899" parm4="030" text="Field Activity ID 2445500899 Sequence 030 combination, duplicate key error" category="9" parm3="Sequence" numParm="4" parm1="Field Activity ID" number="260" />
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body >
</SOAP-ENV:Envelope>
How to get value tag <ResponseStatus>, ResponseCode, and ResponseText ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire