I am currently studying the SOAP message format for converting Socket Message format and vice versa using Java.
I need this to reuse an outdated system that reads a socket format message in order to connect to a website that sends and receives a SOAP message format.
How can I do it? Should I consider text processing?
Socket Example for SOAP
CONNECTOR
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Interface Code="20" <Transaction Txn="01880120121024000001" CD="01880120121024000001001" Date="2012-10-24 17:27:25" BirthDate="1983-03-27" Code="8110009000000720" Type="0"/> </Interface>
SOAP
<?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <webRequest xmlns="http://____________"> <arg0 xmlns=""><?xml version="1.0" encoding="UTF-8" standalone="yes"?><Interface xmlns="http://____________" Version="1.0" Code="20" Txn="123" CD="456"><Info BirthDate="1983-03-27" Code="1234" Type="0" /></Interface></arg0> </webRequest> </soapenv:Body> </soapenv:Envelope>
java soap sockets messaging
Philip morris
source share