|
From: <om...@no...> - 2004-05-22 15:44:25
|
Sorry for the cross posting, but I don't know where exactly put this mesage. I use MSH v.pre-1.0.0.0, build from cvs (date : approx 11/03/2004). I use only mail messaging. When I try to build a new EbxmlMessage using EbxmlMessage(File file), I get a javax.xml.soap.SOAPException: Cannot parse SOAP message The message is a Ack generated by MSH in the server repository. This ack doesn't have any content-type header. After investigations, I get : javax.xml.soap.SOAPException: Absent Content-Type at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:86) at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32) at hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.getMessageFromDataSource(EbxmlMessage.java:1681) at hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.<init>(EbxmlMessage.java:241) The documentation says about this constructor: construct an EbxmlMessage from File using the logic in MessageServer. The file must not contain any content header like Content-Type In EbxmlMessage.getMessageFromDataSource (about line: 1673), the following is commented : /* final MimeHeaders headers = new MimeHeaders(); headers.addHeader(Constants.CONTENT_TYPE, Constants.TEXT_XML_TYPE); */ this explains why the code fails. The problem is that an ack must be loaded when retrying to send it, and it causes error. Shall I uncomment the two lines ? thanks Regards Olivier Moises |