philippeback
Dec 12th, 2006, 03:11 AM
Hi,
I have a class like (well this is the parent):
public abstract class AbstractMessageHeaderEndpoint extends TransformerObjectSupport implements MessageEndpoint
To give back the answer we do:
String resultingXml = handleMessage(messageID, request.getPayloadSource());
StringReader sr = new StringReader(resultingXml);
getTransformer().transform(new StreamSource(sr), response.getPayloadResult());
So, the reponse gets populated and everything goes out.
The problem is that the response is:
TTP/1.1 200 OK
Date: Tue, 12 Dec 2006 08:45:40 GMT
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"
X-Powered-By: Servlet/2.4 JSP/2.0
0097
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body>data</soapenv:Body></soapenv:Envelope>
0000
What are these 0097 and 0000 that are around the soap envelope ?
Our Webservices clients (based on JWSDP1.6 and Axis1.3) choke on that and fail.
TIA for any clue.
/Phil
I have a class like (well this is the parent):
public abstract class AbstractMessageHeaderEndpoint extends TransformerObjectSupport implements MessageEndpoint
To give back the answer we do:
String resultingXml = handleMessage(messageID, request.getPayloadSource());
StringReader sr = new StringReader(resultingXml);
getTransformer().transform(new StreamSource(sr), response.getPayloadResult());
So, the reponse gets populated and everything goes out.
The problem is that the response is:
TTP/1.1 200 OK
Date: Tue, 12 Dec 2006 08:45:40 GMT
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"
X-Powered-By: Servlet/2.4 JSP/2.0
0097
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body>data</soapenv:Body></soapenv:Envelope>
0000
What are these 0097 and 0000 that are around the soap envelope ?
Our Webservices clients (based on JWSDP1.6 and Axis1.3) choke on that and fail.
TIA for any clue.
/Phil