1. shareef mon
  2. PowerBuilder
  3. Wednesday, 25 September 2019 07:07 AM UTC

Hello...

Have any sample codes to access winsock api to send and receive messages from other applications like HL7 Soup or any others........

shareef mon Accepted Answer Pending Moderation
  1. Thursday, 26 September 2019 05:18 AM UTC
  2. PowerBuilder
  3. # 1

I Realy surprised. Power builder directly didn't provide the facility for the same. 

Comment
  1. Michael Kramer
  2. Thursday, 26 September 2019 06:57 AM UTC
Surprised that PowerScript language doesn't have built-in support for winsockets? Or? Not sure I follow. /M
  1. Helpful
  1. shareef mon
  2. Thursday, 26 September 2019 13:29 PM UTC
Sir, Have any sample code to send HL7 Data to Mirth / HL7 soup / or any other........
  1. Helpful
  1. Roland Smith
  2. Thursday, 26 September 2019 17:02 PM UTC
I did some searching and from I can tell, Unicode messages must be UTF8 encoded. When using my Winsock object, you either have to send the messages as Ansi or blob using EncodingUTF8!. My object encodes strings using the default which I believe is UTF16-LE.
  1. Helpful
There are no comments made yet.
shareef mon Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 16:14 PM UTC
  2. PowerBuilder
  3. # 2

Sir, Actually I would like to send some HL7 Data to other third-party applications. any Chance. I Checked Mr. Roland's example. But, It is hanging the system while sending HL7 data to any other. So, Appeon any facility to send the HL7 Data to any other ?

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 25 September 2019 17:42 PM UTC
Hi Michael;

Plus, you could just use the PB RUN() command, to run a separate PBApp.EXE from the main application to perform the HL7 data exchange in another O/S thread.

Regards ... Chris
  1. Helpful
  1. Michael Kramer
  2. Thursday, 26 September 2019 06:55 AM UTC
True, spin off some comm. into separate process is an option C. I prefer B to both (A and C) because it is one central system exchanging data with external system. Operational risk lower than having "all" clients capable of exposing sensitive data.
  1. Helpful
  1. David Peace (Powersoft)
  2. Thursday, 26 September 2019 14:00 PM UTC
I would use PB multi threaded process to send the data.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 15:07 PM UTC
  2. PowerBuilder
  3. # 3

Hi Shareef;

   If you are using the STD Integrated Framework .. its all built-in ... http://chrispollach.blogspot.com/2019/02/stdfcsockets.html

   Otherwise, Roland's standalone code would be great to assimilate for your WinSock needs.

Regards .... Chris

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 10:19 AM UTC
  2. PowerBuilder
  3. # 4

My go-to place for valuable code samples:

http://www.topwizprogramming.com/freecode_winsock.html

 

HTH /Michael

Comment
  1. David Peace (Powersoft)
  2. Wednesday, 25 September 2019 13:50 PM UTC
Yes, Roland has this functionality covered. You can always tweak the code to suit your needs.
  1. Helpful
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.