good day!..
i have this soap message that will be sent to a simple service provider simulator..
since this is only a simulation, i there will be only one service named leave (e.g. vacation leave, sick leave, etc.)
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://leaveprocessor.blueprints.jbi.sun.com/">
<soapenv:Body>
<ns1:processApplication>
<appName>applicant</appName>
<leaveType>type of leave</leaveType>
<numDays>number of days</numDays>
</ns1:processApplication>
</soapenv:Body>
</soapenv:Envelope>
im using tcp for communication between my client and service provider..
basically, i have this code line that would stream my message to the service provider..
output.println(message);
where output there is declared as:
output = new PrintStream(clientSocket.getOutputStream());
i have successfully streamed my message to the service provider when i assigned it a string value like the word "dog"
but what i want to happen is that the message will have the value of the soap message stated above..
how can i do that?
any help in solving this problem will be greatly appreciated..
thanx!..
God bless!..