Do the non-SOAP requests need to be sent to the same URL as the SOAP requests? If not, could the clients send the non-SOAP requests to a servlet at a different URL than the Axis service?
Andrew JavaDonkey wrote: > Hi, > > I have an axis applicaton running. There are situations where the clients > will send a HTTP Post without any SOAP envelope and the application should > process a set of operations and send out a response. What happens now is > that as Axis expects a SOAP request, it throws an exception as soon as it > receives this request. I tried the following approaches....... > > I tried to use a filter. But I am not able to update the request object > with a soap envelope. At the filter, one can only add parameters(Query > strings) to the request object. One cannot add anything to the HTTP body. > > I tried to tackle it at my handler, after disabling the exception at the > AxisServlet. But when I create SOAP message and add it to the > MessageContext, it throws > java.lang.ClassCastException: > com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl > at org.apache.axis.MessageContext.setMessage(MessageContext.java:796) > > I tried a lot but to no use. Any help would be greatly appreciated. > > Thanxxx -- Andrew Martin Computer Programmer Regenstrief Institute, Inc. 410 West 10th Street, Suite 2000 Indianapolis, IN 46202-3012 Phone: (317) 423-5542 Fax: (317) 423-5695 [EMAIL PROTECTED] Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
