Webservices
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
- __toString() : string
- Return WS parameters in json format
- get() : bool|stdClass
- Get webservices parameters for specific conditions the parameters with the authorizers are in a json file in the storage folder
- toStd() : stdClass
- Return WS parameters in a stdClass
- convert() : mixed
- Read WS xml and convert to json and stdClass
- extract() : array<string|int, mixed>
- Extract data from wbservices XML strorage to a array
Properties
$json
public
mixed
$json
$std
public
mixed
$std
Methods
__construct()
Constructor
public
__construct(string $xml) : mixed
Parameters
- $xml : string
-
path or xml content from nfe_ws3_mod55 or nfe_ws3_mod65
__toString()
Return WS parameters in json format
public
__toString() : string
Return values
stringget()
Get webservices parameters for specific conditions the parameters with the authorizers are in a json file in the storage folder
public
get(string $sigla, string $ambiente, string $modelo) : bool|stdClass
Parameters
- $sigla : string
- $ambiente : string
-
"homologacao" ou "producao"
- $modelo : string
-
"57"
Return values
bool|stdClasstoStd()
Return WS parameters in a stdClass
public
toStd([string $xml = '' ]) : stdClass
Parameters
- $xml : string = ''
Return values
stdClassconvert()
Read WS xml and convert to json and stdClass
protected
convert(string $xml) : mixed
Parameters
- $xml : string
extract()
Extract data from wbservices XML strorage to a array
protected
extract(SimpleXMLElement $node, string $environment) : array<string|int, mixed>
Parameters
- $node : SimpleXMLElement
- $environment : string