开发者

IVR application on Nortel MPS 500 not working with ASP.NET MVC

开发者 https://www.devze.com 2022-12-17 10:59 出处:网络
We have a web server running IIS 6.0 and ASP.NET MVC, that is serving plain xml.The IVR Browser is not accepting the xml being output by the web server.

We have a web server running IIS 6.0 and ASP.NET MVC, that is serving plain xml. The IVR Browser is not accepting the xml being output by the web server.

The Controller just returns a normal ActionResult, but changes the Content-Type to text/xml.

The View is just a typical aspx page, but instead of html, we've put xml in there instead. When we view this in a browser, it properly returns the xml in the View. In the I开发者_如何学CVR, it just bombs out. If we remove the Page Directive on the View, then the IVR works.

Does anyone have any idea what the Page Directive changes in the output of the view?


Problem Solved:

The problem was not with the page-directives at all. The Nortel MPS 500 browser was not ignoring whitespace at the top of the xml document. So to fix the problem, we had to change our Master page, and put the <?xml version="1.0"> on the same line as the master page directive.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号