Please help !!!!
My Web-application is calling Web-Service methods from the browser and is expecting data delivered in XML-format. This is working perfectly Inder IE9 and Windows 7 Ultimate. In case of IE10 and Windows 8 Pro the Web-service method call is working, the breakpoint in the callback function is reached but the delivered data is not in XML-Format. The data received should be a XML-document which should be convertible to a string applying the MSXML-property "xml" ans subnodes should be searcheable by applying the method "selectSingleNode". This is not the case in IE10 / Windows 8 Pro. ( I use MSXML because I need XPath in the browser ).My code is like this:
in the Web-Form:
<asp:scriptmanager id="scriptAsyst" runat="server">
<scripts>
<asp:scriptreference path="~/JScript/asyst.js" />
</scripts>
<services>
<asp:servicereference path="~/asystWS.asmx" />
</services>
</asp:scriptmanger>
calling the Web-service method "Init" in the JScript-file "asyst.js":
asystWS.Init ( Init );
Web-Service method "Init" in the C#-file "asystWS.cs":
[ WebService ( Namespace=http://tempuri.org ) ]
[ WebServiceBinding ( ConformsTo = WsiProfiles.BasicProfile1_1 ) ]
[ System.Web.Script.Services.ScriptService ]
public class asystWS: System.Web.Services.WebService
{
[ WebMethod ( EnableSession = true ) ]
[ ScriptMethod ( ResponseFormat = ResponseFormat.Xml ) ]
public XmlNode Init ()
{
XmlDocument xmlR = new XmlDocument ();
providing data in XML-Format the Web-application needs in the beginning
return xmlR.SelectSingleNode ( "/envelope" ); // a breakpoint here shows correct data in XML-format
}
receiving data in the callback-function "Init" in JScript-file "asyst.js":
function Init ( xmlEnvelope )
{
at this point "xmlEnvelope" should be a XML-document which it is in IE9 / Windows 7 Ultimate / .NET Framework 4.0
but not in IE10 / Windows 8 Pro / .NET Framework 4.5 Why ???
}
Thanks for hints in advance