Hi.
Have you tried to use httpclient?
Here is what I guess you should do to call for example DownloadTransactionFile:
string ls_xml2send, ls_answer
integer li_ret
httpclient lnv_httpclient
// You have to give appropriate values for login, pwd, fileId...
ls_xml2send = '<?xml version="1.0" encoding="utf-8"?> ' + &
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> ' + &
'<soap:Body> ' + &
'<DownloadTransactionFile xmlns="http://www.eClaimLink.ae/"> ' + &
'<login>string</login> ' + &
'<pwd>string</pwd> ' + &
'<fileId>string</fileId> ' + &
'</DownloadTransactionFile> ' + &
'</soap:Body> ' + &
'</soap:Envelope>'
lnv_httpclient = create httpclient
try
lnv_httpclient.setrequestheader("Content-Type", "text/xml; charset=utf-8")
lnv_httpclient.setrequestheader("Content-Length", string(len(ls_xml2send)))
li_ret = lnv_httpclient.sendrequest("POST", "http://www.eClaimLink.ae/DownloadTransactionFile", ls_xml2send)
if li_ret = 1 and lnv_httpclient.GetResponseStatusCode() = 200 then
lnv_httpclient.GetResponseBody(ls_answer)
messagebox("Answer:", ls_answer)
end if
catch (throwable exc1)
messagebox("Error:", exc1.text)
finally
if isvalid(lnv_httpclient) then destroy lnv_httpclient
end try
I cannot test it from where I am. Anyway I would also need credentials that I don't have...
Andreas.
The example I sent you is based on Soap 1.1. Have you tried to call the Soap 1.2 version of the service?
Andreas.
You can get the new URL from the Response Location header and send another request, or use the correct URL at first.
Regards, Logan
Sir, I just changed the credential in the areas.
When I am giving the link like "https://dhpo.eclaimlink.ae/eRxValidateTransaction.asmx", getting proper response from server.. Thank you sir.
and may i know the base64binary
POST /eRxValidateTransaction.asmx HTTP/1.1
Host: dhpo.eclaimlink.ae
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<UploadERxRequest xmlns="http://www.eClaimLink.ae/">
<facilityLogin>string</facilityLogin>
<facilityPwd>string</facilityPwd>
<clinicianLogin>string</clinicianLogin>
<clinicianPwd>string</clinicianPwd>
<fileContent>base64Binary</fileContent> // what they mean Base64Binary ?
<fileName>string</fileName>
</UploadERxRequest>
</soap12:Body>
</soap12:Envelope>