Hi,
I have a Application which provides webservices for some functionalities.
We have a Java implementation for web services and we are using an extended version
of JAXMServelt to receice the SOAP requests.
For Ex Below is a simple SOAP Request :
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<accessing-entity name="some service requestor"/>
<target-entity name="this service"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Once I have the soap request I am trying toget the entire string out of it by the following method
javax.xml.transform.Transformer transformer = transformerFactory.newTransformer ();
javax.xml.soap.SOAPPart soapPart = _soapMessage.getSOAPPart ();
javax.xml.transform.Source soapEnvlopeSource = soapPart.getContent ();
transformer.transform(soapEnvlopeSource, new StreamResult(StringWriter));
This implementation perfectly works fine when the Application server is Weblogic.
But when I try to run the same application from JBOSS it gives the following error :
"[Fatal Error] :-1:-1: Premature end of file.TransformerException : SaxException"
JBOSS internally uses AXIS APi's to process the SOAP Request.
Is It any Issue with the AXIS API , or is some other problem?
Any clues ..???
Please shoot a mail to my ID..
subhadeep_ghosh@infosys.com