1. SHAMEEM KAKKAD
  2. PowerBuilder
  3. Tuesday, 12 September 2023 06:18 AM UTC

HI,

Anybody can help me ???

I used webservice method till the PB version 21 to use this "https://dhpo.eclaimlink.ae/eRxValidateTransaction.asmx?WSDL" link. Now, PB 2022 version there is no object to execute. How can manage this case ?

PB 2022 - 1892

Please very urgent....

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 07:32 AM UTC
  2. PowerBuilder
  3. # Permalink

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.

Comment
  1. Andreas Mykonios
  2. Tuesday, 12 September 2023 09:48 AM UTC
If you get the same response from postman or soapui, then there must be a problem with service provider.

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.
  1. Helpful 1
  1. Logan Liu @Appeon
  2. Tuesday, 12 September 2023 10:02 AM UTC
302 Found redirect status response code indicates that the resource requested has been temporarily moved to the URL given by the Location header.

You can get the new URL from the Response Location header and send another request, or use the correct URL at first.

Regards, Logan
  1. Helpful 2
  1. SHAMEEM KAKKAD
  2. Tuesday, 12 September 2023 11:27 AM UTC
@Andreas Mykonios.

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>
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 19:44 PM UTC
  2. PowerBuilder
  3. # 1

You might also want to look into if the service has been re-created as a REST service.  You may find it easier to work with REST vs SOAP.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.