Hello James,

this two mesages are the same type, one is sent as a normal http message and
the other is sent as a http stream message. When you take a look to the http
header, your first message has the attribute Content-Length: 798. The second
one do not have this attribute but the hex-number 1A7 + the msg + ending 0.
The number 1A7 is the hex representation of the content length.

Hope this will help.

Tobi


 

bradtwurst wrote:
> 
> Hello all,
> 
> I have setup and configured a jsr-181 class and I have an http BC endpoint
> that routes to the endpoint.
> 
> The http stream on the way in 
> ============================================================
> POST /Service/ HTTP/1.1
> User-Agent: Jakarta Commons-HttpClient/3.0
> Host: 127.0.0.1:82
> Content-Length: 798
> 
> <soapenv:Envelope
> xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:urn='urn:ic:km' xmlns:tran='http://transfer'>
> <soapenv:Header/>
> <soapenv:Body>
> <urn:updateBoard>
> <urn:msgId>456</urn:msgId>
> <urn:operatingData>test message</urn:operatingData>
> </urn:updateBoard>
> </soapenv:Body>
> </soapenv:Envelope>
> ============================================================
> which looks how I would expect it.
> 
> However, on the way out, I have some extra characters outside the bounds
> of the soap envelope:
> 
> ============================================================
> HTTP/1.1 200 OK
> Content-Type: text/xml
> Transfer-Encoding: chunked
> Server: Jetty(6.0.1)
> 
> 1A7
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> <soapenv:Body>
> <updateBoardResponse xmlns="urn:ic:km">
> <acknowledge>
> <ackDate xmlns="http://domain";>2006-12-08T17:49:50.306-05:00</ackDate>
> <msgId xmlns="http://domain";>456</msgId>
> </acknowledge>
> </updateBoardResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> ============================================================
> 
> I'm not sure where these characters are coming from.  Any ideas?
> 
> Thanks for all the help,
> James
> 

-- 
View this message in context: 
http://www.nabble.com/%27extraneous-characters%27-with-jsr181-http-message-response-tf2783692s12049.html#a8312541
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to