TCP Read(32000) with timeout period (5) failed
I'm currently developing a TCP inbound Service to read some XML sent from a TCP Operation that uses EnsLib.TCP.CountedOutboundAdapter.
1) I have tried EnsLib.TCP.Inbound adapter but that gives this error:
ERROR <Ens>ErrException: <METHOD DOES NOT EXIST>zinitConfig+7 ^Ens.Host.1 *%New,EnsLib.TCP.InboundAdapter -- logged as '-'
number - @'
Set ..Adapter = $classmethod(..#ADAPTER,"%New")'
Due to this, the adapter is unable to start listening for incoming connections.
2) When I use
ERROR <Ens>ErrTCPReadBlockSize: TCP Read(32000) with timeout period (5) failed with : (1144):l version="1.0" encoding="UTF-8"?> Wsma2Message xmlns:ns1="urn:hl7-org:v3" ......
I tried changing the read timeout period all the way to 30 seconds but no use. The XML that is sent from the TCPCountedOutboundAdapter is as follows.
<?xml version="1.0" encoding="UTF-8"?> <Wsma2Message xmlns:ns1="urn:hl7-org:v3"><Header><MessageID>PCEN1111111111111</MessageID><SendingOrganisationID>987654321</SendingOrganisationID><SendingIndividualID>5555555555</SendingIndividualID><ReceivingOrganisationID>123456</ReceivingOrganisationID><MessageType>JCCReferralOut</MessageType><CreationTime>2021-04-28T04:27:09.231Z</CreationTime></Header><Payload><V2> 1KB payload here</V2></Payload></Wsma2Message>
3) Can someone please explain, which TCP inbound adapter should I be using to receive an XML(Stream) sent by EnsLib.TCP.CountedOutboundAdapter?
Also if someone can explain how this counted adapter is different from normal inbound adapter, I would really appreciate that.
Thanks in advance.