|
From: Rao Y. <ra...@ya...> - 2003-08-07 19:57:39
|
i am trying to do a interop between our in-house implementation and Hermes.
we are using jwsdp1.0.1 . when i try to send a document from Hermes to our in-house implementation
jaxm throws the following exception
javax.xml.soap.SOAPException: Invalid Content-Type:application/octet-stream at
com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159) at
com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:91) at
com.sun.xml.messaging.jaxm.util.ProfileMessage.<init>(ProfileMessage.java:38) at
com.sun.xml.messaging.jaxm.ebxml.EbXMLMessageImpl.<init>
EbXMLMessageImpl.java:119) at
com.sun.xml.messaging.jaxm.ebxml.EbXMLMessageFactoryImpl.createMessage(EbXMLMessageFactoryImpl.java:57)
on hermes i see the following error message ( btw i am running runmonitor.bat )
Cannot create request objects.
hk.hku.cecid.phoenix.message.handler.RequestException:
Failed to send query to MSH.
HTTP response code = 500
HTTP response message = Internal Server Error
at hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Unknow
n Source)
at hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandle
rConfig(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.Request.register(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown Source)
at hk.hku.cecid.phoenix.message.monitor.Monitor.setConfigParamenters(Unk
nown Source)
at hk.hku.cecid.phoenix.message.monitor.Monitor.main(Unknown Source)
i checked the SAAJ source code for MessageImpl.java.
-----------------------------------------------------------------------
Source of verify() in MessageImpl.java
----------------------------------------------------------------
String primary = contentType.getPrimaryType();
String sub = contentType.getSubType();
if (!primary.equalsIgnoreCase("multipart"))
{
if (primary.equalsIgnoreCase("text") && sub.equalsIgnoreCase("xml"))
return 1;
else
throw new SOAPException("Invalid Content-Type:"+primary+"/"+sub);
}
else if (sub.equalsIgnoreCase("related"))
{
String type = contentType.getParameter("type").toLowerCase();
if (type.startsWith("text/xml"))
return 2;
else
throw new SOAPException("Content-Type needs to be Multipart/Related "+
"and with \"type=text/xml\"");
}
else
throw new SOAPException("Invalid Content-Type: "+primary+"/"+sub);
After going thru the checks it is throwing a SOAPException with the following message
javax.xml.soap.SOAPException: Invalid Content-Type:application/octet-stream
so i was wondering if i need to change anything MIME related to make Hermes interoperate with jwsdp 1.0.1. i am not using SMTP .
-Venkat
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software |