Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send UBL 2.1 via API POST
Message
From
02/12/2021 12:40:55
 
 
To
02/12/2021 11:05:10
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01682832
Message ID:
01682892
Views:
55
Vojislav,

Change this
boundary = "----WebKitFormBoundary7MA4YWxkTrZu0gW"   
into this
boundary = "WebKitFormBoundary7MA4YWxkTrZu0gW"   
Then, in the TEXT .. ENDTEXT structure, change all occurrences of the boundary to
--<<m.boundary>>
except for the last one, that must signal the end of form data:
--<<m.boundary>>--
In the request header, set it to
m.loXMLHTTP.setRequestHeader('Content-type', 'multipart/form-data; charset=utf-8; boundary=' + m.boundary)
Also, be sure to calculate the content length after the UTF-8 encoding.

Hopefully, this will do.

-----

Antonio,

Well done every part - that's it, it works.
I learned something new in VFP.
Thanks a lot Antonio.

Ingenious - I didn't believe it could be through VFP. I will not have to use C # for this case.

This is the answer after your recommendations, corrections

m.loXMLHTTP.statustext OK
m.loXMLHTTP.Status 200
m.loXMLHTTP.responseTExt {"status":"success","data":{"posiljkaID":2390,"sef":{"invoiceId":8143,"selesInvoiceId":18969}}}


Thanks very much
Best regards
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform