|
From: Bob K. <py...@ce...> - 2004-04-01 07:41:06
|
Thanks for your reporting. I need some time have a good trace on the why the mime header from the parseOutput won't works, and will reply you all if I fixed it up. Regards, Bob Koon Mayne, Peter wrote: > I'm using Hermes pulled from CVS this morning. > > When I receive an error message, Hermes couldn't build the bytes into > a SOAP message. I tracked this down to > EbxmlMessage.getMessageFromDataSource(), which contains: > > /* > final MimeHeaders headers = new MimeHeaders(); > headers.addHeader(Constants.CONTENT_TYPE, > Constants.TEXT_XML_TYPE); > */ > final MimeHeaders headers = parsedOutput.getMimeHeaders(); > > It seems that parsedOutput.getMimeHeaders() doesn't work properly: it > wasn't producing any headers, so building the SOAP message was failing > with a "no content-type" exception. > > Going back to the predefined header by switching the comments around: > > final MimeHeaders headers = new MimeHeaders(); > headers.addHeader(Constants.CONTENT_TYPE, > Constants.TEXT_XML_TYPE); > /* > final MimeHeaders headers = parsedOutput.getMimeHeaders(); > */ > > now the message builds properly. > > PJDM > -- > Peter Mayne > Technology Consultant > Spherion Technology Solutions > Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 > T: 61 2 62689727 F: 61 2 62689777 > > > > > > |