I have to create a java client to execute a webservice . I have a XML containing the whole SOAP Request (Envelope , Header, Body ) .
How do i write a java code to execute the webservice , by passing xml file which contains soap request ?
I tried searching a lot but could not find a sample that does this
The webservice on the server is on SOAP 1.1 with content-Type 'text/xml'
For Example wsdlLocation="http://localhost:8080/helloservice/hello?wsdl"
The webservice does not have a input parameter , that's why the data has to be passed completely as a soap request. The data that is passed is in the form of xml.
Sample SOAP Request xml file sample (Sample.xml)
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<putTxlife1203Info xmlns="http://www.openuri.org/">
<TXLife>
</TXLife>
</putTxlife1203Info>
</env:Body>
</env:Envelope>
It would be really great if somebody could provide a sample it would be great