Reputation: 31
When i try to open WSDL file in browser (http://localhost/something/file.wsdl), i am offered to download that file. But i want instead of downloading to be able view as XML(string) in browser?
Thank you
Upvotes: 3
Views: 15957
Reputation:
This might happen if your server is not sending the correct content type for the WSDL file.
There should be a HTTP header on the response when requesting the WSDL, something like this:
Content-type: text/xml
If you see a download popup then maybe this is set to something else, or it is missing altogether.
If you are also using Tomcat with Apache, you could set something like this in the web.xml file:
<mime-mapping>
<extension>wsdl</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
For Apache, have a look at the mod_mime module.
Upvotes: 3
Reputation: 2005
It all depend on what browser your using. Try different than your main browser. When you open it in Internet Explorer 8
you should have XML view.
Upvotes: 1