-
1. Jboss4.2.3/Solaris10_Sparc
mp911de May 19, 2011 2:17 AM (in response to hudsonmelo)Hi Hudson,
that would be the behavior I expect. Most Browsers support only text/.... (text/xml, text/html, ...) image.../ (image/gif, image/png, ...) and some few Mime-Types more for displaying. Default Type for an Apache HTTPd should be text/html or text/plain. But more interesting than Browser triggers Download is: Is the content (when you download it) what you expect?
Best regards,
Mark
-
2. Re: Jboss4.2.3/Solaris10_Sparc
hudsonmelo May 19, 2011 10:13 AM (in response to mp911de)Hi Mark, thank you for reply.
the application that is in Jboss is a Java App, and the expected is a .do return. The problem is, i have two environments, one with Apache/jboss in Solaris/Sparc and another in Solaris/x86 but the problem only happen in Solaris/sparc. How the application needs to answer with soap1.2 the application/soap+xml went necessary to be configurated with DefaultType.
In annex a image of the download.
Best regards,
Hudson
-
imagem_download1.bmp 961.9 KB
-
-
3. Re: Jboss4.2.3/Solaris10_Sparc
mp911de May 19, 2011 10:59 AM (in response to hudsonmelo)When your DefaultType is other than text/html, the .do-Request won't stay the only one problem. There are three appoaches, what you could do:
- Setting the Content-Type application/soap+xml only where needed (my favorite)
- Create a Servlet-Filter an map this filter to your resources, where you want to display those in your browser (e.g. Filter-Mapping *.do). In this filter you set (static) the Content-Type you need (probably text/html)
- You add the "do" extension in Apache's mime-config to the text/html mime-type
-
4. Re: Jboss4.2.3/Solaris10_Sparc
hudsonmelo May 20, 2011 8:41 AM (in response to mp911de)Hi Mark, is this guy!!!
I set a static filter in web.xml to answer requests soap+xml and text/html too. See how i did:
<filter>
<filter-name>SOAPXmlHeadersFilter</filter-name>
<filter-class>org.jboss.web.tomcat.filters.ReplyHeaderFilter</filter-class>
<init-param>
<param-name>contentType</param-name>
<param-value>application/soap+xml</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SOAPXmlHeadersFilter</filter-name>
<url-pattern>/services/cadconsultacadastro2/*</url-pattern>
</filter-mapping>
Thank you very much for help my friend!!!!
Hudson