Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 11336

Utilizar Webservices da AT

$
0
0
Bom Dia, Já alguem esta a enviar as faturas com os novos campos (EACCode e OrderReferences) do novo WSDL (factemiws.wsdl) ? Enviei, em testes, este XML, já com estes 2 novos campos, e retorna-me sempre o erro: INFO: >>>RECEIVED<<< <?xml version="1.0" encoding="utf-8" standalone="no"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <env:Fault> <faultcode>env:Client</faultcode> <faultstring>Internal Error</faultstring> </env:Fault> </env:Body> </env:Envelope> O xml enviado é: <?xml version="1.0" encoding="utf-8" standalone="no"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Header> <wss:Security xmlns:wss="http://schemas.xmlsoap.org/ws/2002/12/secext"> <wss:UsernameToken> <wss:Username>599999993/0037</wss:Username> <wss:Password Digest="xxxxxyBuOSBsmgMA41eI5oLkydwNUPfGRV9STdejwc=">wub4R7H4TNUSdJrxuXnlVg==</wss:Password> <wss:Nonce>igWZiGd2ML0dlcukPO2I8n+4g0fHbrHqrGPs73JRxrkuj35YSB+0d2zY8mgpgi3Y2ABxGMC96OxBTpW/SdYvB7c6OVdzV78B0HEDyPZ3LMt6WiiDsTA7OwZRRw8uV4kFswz6+pvNp5yRrE81HUcPXHTgLl33Z1Se2LjwlIrTayAXEOT3WqNmF6laoxPihEx3UpLVfEm/eQPGKg==</wss:Nonce> <wss:Created>2017-01-19T18:24:46.941Z</wss:Created> </wss:UsernameToken> </wss:Security> </S:Header> <S:Body> <ns2:RegisterInvoiceElem xmlns:ns2="http://servicos.portaldasfinancas.gov.pt/faturas/"> <TaxRegistrationNumber>599999993</TaxRegistrationNumber> <ns2:InvoiceNo>POSCVO-FT 2016/111</ns2:InvoiceNo> <ns2:InvoiceDate>2016-06-04</ns2:InvoiceDate> <ns2:InvoiceType>FT</ns2:InvoiceType> <ns2:InvoiceStatus>N</ns2:InvoiceStatus> <ns2:EacCode>38212</ns2:EacCode> <CustomerTaxID>999908998</CustomerTaxID> <Line> <ns2:OrderReferences>1</ns2:OrderReferences> <ns2:CreditAmount>16.26</ns2:CreditAmount> <ns2:Tax> <ns2:TaxType>IVA</ns2:TaxType> <ns2:TaxCountryRegion>PT</ns2:TaxCountryRegion> <ns2:TaxPercentage>23</ns2:TaxPercentage> </ns2:Tax> </Line> <DocumentTotals> <ns2:TaxPayable>3.74</ns2:TaxPayable> <ns2:NetTotal>16.26</ns2:NetTotal> <ns2:GrossTotal>20</ns2:GrossTotal> </DocumentTotals> </ns2:RegisterInvoiceElem> </S:Body> </S:Envelope>

Viewing all articles
Browse latest Browse all 11336

Latest Images

Trending Articles



Latest Images