@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $factory = new Factory(); |
109 | 109 | $client = $factory->create(new Client(), 'https://ws.tntbrasil.com.br/tntws/Localizacao?wsdl'); |
110 | 110 | try { |
111 | - $promise = $client->callAsync('localizaMercadoria', $this->buildRequest())->then(function ($response) { |
|
111 | + $promise = $client->callAsync('localizaMercadoria', $this->buildRequest())->then(function($response) { |
|
112 | 112 | $this->parseResult($response); |
113 | 113 | }); |
114 | 114 | $promise->wait(); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | 'localizaMercadoria' => [ |
129 | 129 | 'in0' => [ |
130 | 130 | 'cnpj' => new \SoapVar($this->senderTaxId, XSD_STRING, 'string', null, 'cnpj', 'http://model.localizacao.mercurio.com'), |
131 | - 'nf' => $this->invoiceNumber ? new \SoapVar($this->invoiceNumber, XSD_INT, 'int', null, 'nf', 'http://model.localizacao.mercurio.com'): '?', |
|
131 | + 'nf' => $this->invoiceNumber ? new \SoapVar($this->invoiceNumber, XSD_INT, 'int', null, 'nf', 'http://model.localizacao.mercurio.com') : '?', |
|
132 | 132 | 'nfSerie' => $this->invoiceSeries ? new \SoapVar($this->invoiceSeries, XSD_STRING, 'string', null, 'nfSerie', 'http://model.localizacao.mercurio.com') : '?', |
133 | 133 | 'pedido' => $this->orderNumber ? new \SoapVar($this->orderNumber, XSD_INT, 'int', null, 'pedido', 'http://model.localizacao.mercurio.com') : '?', |
134 | 134 | 'usuario' => new \SoapVar($this->login, XSD_STRING, 'string', null, 'usuario', 'http://model.localizacao.mercurio.com'), |