Last post Feb 17, 2017 08:00 AM by Jean Sun
Feb 15, 2017 11:07 AM|progy85|LINK
I need to send xml response using TCP session but I need to know more about this.
What port I need to enter?
Feb 15, 2017 11:33 AM|mgebhard|LINK
Your question is too vague to answer and, as far as I can tell, out of scope of an ASP forum. Basically a TCP session is a handshake between two end points which can occur over any port.
What problem are you trying to solve?
Feb 15, 2017 11:40 AM|progy85|LINK
One payment provider wants:
you send a response to us. The response must be posted back in established TCP session by writing XML content to response stream, using the exact format indicated below and end the session from your side – the response will be automatically sent to us. (don't
create a new session)
<?xml version="1.0" encoding="utf-8"?><SVSPurchaseStatusNotificationResponse><TransactionResult><Description>Description1</Description><Code>123</Code></TransactionResult><Status>Confirmed</Status><Authentication><Checksum>32712afc0317804b6e330342ee6ec460</Checksum></Authentication></SVSPurchaseStatusNotificationResponse>
Feb 15, 2017 11:53 AM|PatriceSc|LINK
Still some more context could help. Is this a WCF over TCP service? Are you 100% this is just not a high level http request and that you really need to consider what happens at the TCP level?
My understanding is that a 3rd party service is doing a call to a service you expose (how do they call you ?) and that they expect a response to their request (rather than doing yourself another request to their service).
To start with do you currently expose them something they could call?
Feb 17, 2017 08:00 AM|Jean Sun|LINK
You can use the duplex service to achieve this goal. The following link talks about duplex service, please take it as reference.