The ATL COM module generalInvoiceRequest is capable of
generating electronic and printed invoices & reminders
generating electronic and printed invoices & reminders
How to do a Restful LoadXML
where [param] are added as reuest.query parts and <application/octet-stream> means and binary stream upload.
The above definition can be transcoded into a curl.exe command as follows, given that:
The API documentation for the Restful LoadXML command
seems to be somewhat cryptic and incomprehensible as several inquiries suggest.
The following attempts to shed more light on the API definition:
[POST] | /baseURL/IGeneralInvoiceRequestManager/LoadXML?param | ||
[param] | pIGeneralInvoiceRequestManager=longValue& bstrInputFile=urlEncodedString + <application/octet-stream> input_file_upload_stream |
where [param] are added as reuest.query parts and <application/octet-stream> means and binary stream upload.
The above definition can be transcoded into a curl.exe command as follows, given that:
- there exist a XML input file: d:\test\_inv.xml
- the current sessionID is pIGeneralInvoiceRequestManager=37963652
curl.exe -v -X POST "http://localhost:35340/generalInvoiceRequestManagerServer450/ ^
IGeneralInvoiceRequestManager/LoadXML?pIGeneralInvoiceRequestManager=37963652& ^
bstrInputFile=_inv.xml" ^
--header "Content-Type: application/octet-stream" ^
--data-binary "@d:\test\_inv.xml"
This command produces an output like:
D:\test>curl.exe -v -X POST "http://localhost:35340/generalInvoiceRequestManagerServer450/IGeneralInvoiceRequestManager/LoadXML?pIGeneralInvoiceRequestManager=37963652&bstrInputFile=_inv.xml" ^
More? --header "Content-Type: application/octet-stream" ^
More? --data-binary "@d:\test\_inv.xml"
Note: Unnecessary use of -X or --request, POST is already inferred.
* Host localhost:35340 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:35340...
* Connected to localhost (::1) port 35340
* using HTTP/1.x
> POST /generalInvoiceRequestManagerServer450/IGeneralInvoiceRequestManager/LoadXML?pIGeneralInvoiceRequestManager=37963652&bstrInputFile=_inv.xml HTTP/1.1
> Host: localhost:35340
> User-Agent: curl/8.13.0
> Accept: \*/\*
> Content-Type: application/octet-stream
> Content-Length: 17372
>
* upload completely sent off: 17372 bytes
< HTTP/1.1 200 OK
< Server: Microsoft-HTTPAPI/2.0
< Content-Length: 136
< Content-Type: application/json
< Date: Thu, 07 Aug 2025 12:03:42 GMT
<
<
< JSON returned:
< {"pIGeneralInvoiceRequest":37874932,"pIGeneralInvoiceResult":37829508,"pbStatus":true,"pbstrUsedSchema":"generalInvoiceRequest_450.xsd"}