Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send UBL 2.1 via API POST
Message
De
02/12/2021 12:40:55
 
 
À
02/12/2021 11:05:10
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
01682832
Message ID:
01682892
Vues:
56
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform