Hi everyone,
I am trying to set up a web service that sends out
SOAP 1.2 requests and processes SOAP 1.2 responses. To minimize the complexity of the application, I decided to use
Java SAAJ v1.3 from the JWSDP v2.0 developer kit. Using SAAJ, I can send out and receive SOAP messages without Apache
Tomcat or Apache Axis.
SAAJ 1.3 is supposed to support both SOAP 1.1 and 1.2 messages. Instead of constructing the SOAP request message by using the various "add" functions. I constructed the SOAP message beforehand and pass it as an argument to the SoapPart.
StreamSource prepSoapMsg = new StreamSource(new FileInputStream("nameOfSOAPRequest.msg"));
soapPart.setContent(prepSoapMsg);
After sending the SOAP message, I am getting a SOAP response. However, how can I tell if it is a SOAP 1.2 response?
It looks like a SOAP 1.1 response, b/c my request has tag names of
<soap12:Envelope
but response has tag names of
<soap:Envelope
Please advise. If I cannot construct SOAP 1.2 messages using SAAJ, what is the simplest alternative?