How to post data to server using POST method

irade92

Registered User.
Local time
Today, 05:15
Joined
Dec 26, 2010
Messages
229
HI
All I need now is how to send data back to server. I have an example of XML code how it needs to be written. After sending this XML code I should get an response that data is successfully send . This two example you can see below:

"Post Request Example (this I have to post using "POST" method

<?xml version="1.0" encoding="UTF-8"?><prescription><prescription_code>WE45927</prescription_code><exempt_from_participation>true</exempt_from_participation><pharmacist_facsimile>999999</pharmacist_facsimile><drug_fund_code>979376</drug_fund_code><quantity/></prescription>

* this I will get as an response that everything is ok

Response example<?xml version="1.0" encoding="UTF-8"?><response><status>OK</status><message>Prescription successfully realized</message><message_mk>Рецептот е успешно реализиран</message_mk><prescription_rank>4-Лекови ослободени од партиципација</prescription_rank></response>

and address where I have to post is: https://api.zdravstvo.gov.mk/rest/prescriptions/realize

Any idea how to do it or examples
Thanks a lot
 

Users who are viewing this thread

Back
Top Bottom