ฉันกำลังใช้บริการเว็บซึ่งส่งข้อความ HL7 ผ่านโปรโตคอล MLLP ไปยังผู้ให้บริการหลายราย ในทางปฏิบัติ วิธีนี้ควรทำได้ง่ายๆ เพียงส่งสตริงที่ถูกต้องซึ่งล้อมรอบด้วย<VT>
และ<FS><CR>
ดังนั้น บางอย่างเช่น (นี่คือรหัสเทียม):
$socket = create_socket($destIp, $destPort);\n$socket->send("\\013".$hl7Message."\\034\\015");\n$response = $socket->read();\n
\nฉันใช้ < a>ไลบรารีนี้สำหรับสิ่งนั้น (รหัสการส่งอยู่ใน ไฟล์นี้ โดยเฉพาะ) ซึ่งใช้socket_create()
,{- code-5}
และsocket_read()
ทำงานได้อย่างสมบูรณ์ ยกเว้นผู้ให้บริการรายเดียวที่หมดเวลาในการรอข้อมูล การใช้ tcpdump ฉันเห็นว่าส่งข้อมูลสำเร็จ ได้รับแพ็กเก็ตที่มีการตอบกลับ แต่ PHP ไม่สามารถดึงข้อมูลการตอบกลับผ่านsocket_read()
stream_socket_client()
,stream_socket_sendto()
และ stream_socket_recvfrom()
บนฟังก์ชันที่เหมือนกันเกือบทั้งหมด ผลลัพธ์ส่วนใหญ่เหมือนกัน\nMirth ซึ่งเป็นแพลตฟอร์มที่ใช้ Java สำหรับจัดการข้อความ HL7\n ไม่มีปัญหาในการส่งไปยังผู้ให้บริการรายนี้ ฉันก็ไม่มีปัญหาในการส่งข้อความถึงเมิร์ธเช่นกัน ปัญหาเดียวคือฉันได้รับการตอบกลับเมื่อส่งโดยตรง
\nเมื่อพิจารณาว่าพวกเขาเป็นบริษัทข้ามชาติและฉันเป็นโปรแกรมเมอร์อิสระที่ต่ำต้อย ฉันจึงอยากทราบว่าฉันจะทำอะไรได้อีก เพื่อดูว่าปัญหาคืออะไร และถ้าเป็นไปได้ จะแก้ไขได้อย่างไร คำแนะนำใด ๆ เกี่ยวกับวิธีแก้ปัญหานี้หรือวิธีอื่น ๆ ในการดำเนินการนี้ (โดยไม่ต้องพึ่งพาพ่อค้าคนกลาง – ฉันรู้ว่าฉันสามารถส่งข้อความไปยัง Mirth และให้ส่งไปยังผู้ให้บริการได้ แต่มันเป็นข้อผิดพลาดเพิ่มเติมที่ฉัน \ต้องการหลีกเลี่ยง) จะได้รับการชื่นชมอย่างมาก
\nOur community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites.
The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/
Welcome to the Q&A site for web developers. Here you can ask a question about the problem you are facing and get answers from other experts. We have created a user-friendly interface so that you can quickly and free of charge ask a question about a web programming problem. We also invite other experts to join our community and help other members who ask questions. In addition, you can use our search for questions with a solution.
Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.
Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.