<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Zipsoft, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045355#M47746</link>
    <description>&lt;P&gt;Zipsoft,&lt;/P&gt;

&lt;P&gt;Have you stepped through your code while running on device? Where does it get stuck? Using the Debug Tab to step through your code can be very helpful (or the Test Tab with weinre for a Windows 8 device).&lt;/P&gt;

&lt;P&gt;Pamela&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 21:02:25 GMT</pubDate>
    <dc:creator>Pamela_H_Intel</dc:creator>
    <dc:date>2015-11-04T21:02:25Z</dc:date>
    <item>
      <title>How to call SOAP asmx web service within XDK project</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045346#M47737</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is it possible to&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;call SOAP asmx web service within XDK project?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Any example?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 08:53:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045346#M47737</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-03T08:53:57Z</dc:date>
    </item>
    <item>
      <title>Here is a sample ASMX file to</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045347#M47738</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Here is a sample ASMX file to return JSON data from a table.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Script.Serialization

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' &amp;lt;System.Web.Script.Services.ScriptService()&amp;gt; _
&amp;lt;WebService(Namespace:="http://tempuri.org/")&amp;gt; _
&amp;lt;WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)&amp;gt; _
&amp;lt;Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()&amp;gt; _
Public Class WebService1
    Inherits System.Web.Services.WebService
    Dim strConnString As String = System.Configuration.ConfigurationManager.ConnectionStrings.Item("strConnString").ToString()
    Dim myconn As New SqlConnection(strConnString)
    Dim sqlstr As String
    Dim mycommand As SqlCommand
    Dim sqlda As SqlDataAdapter
    Dim ds As DataSet


    &amp;lt;WebMethod()&amp;gt;
    Public Function getCols(ByVal col1 As String) As String
        Try
            sqlstr = "SELECT no,name FROM Dept WHERE no = col1;"
            mycommand.Connection = myconn
            If myconn.State &amp;lt;&amp;gt; ConnectionState.Open Then
                myconn.Open()
            End If
            sqlda = New SqlDataAdapter(sqlstr, myconn)
            sqlda.Fill(ds)
            myconn.Close()
            Dim jsonData As String = GetJson(ds.Tables(0))
            Return jsonData
        Catch ex As Exception
            myconn.Close()
            Return False
        End Try
    End Function
    Public Shared Function GetJson(ByVal dt As DataTable) As String
        Return New JavaScriptSerializer().Serialize(From dr As DataRow In dt.Rows Select dt.Columns.Cast(Of DataColumn)().ToDictionary(Function(col) col.ColumnName, Function(col) dr(col)))
    End Function
End Class&lt;/PRE&gt;

&lt;P&gt;From your Javascript call the following to build a Dropdown list in HTML and display it at a DIV defined on your page.&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function getCols() {
    $.ajax({
        type: "POST",
        url: "http://myURL/service.asmx/getCols",
        data: "{'col1':'" + localStorage.getItem("col1") + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        async: true,
        crossDomain: true,
        success: function(json){
        jsonArray = $.parseJSON(json.d);
            $("#cols").empty();
                       var html = "&amp;lt;option&amp;gt;[Select]&amp;lt;/option&amp;gt;";
             for(i=0; i &amp;lt; jsonArray.length; i++)
                       {
                       col1 = jsonArray&lt;I&gt;.no;
                       col2 = jsonArray&lt;I&gt;.name;
                       html += "&amp;lt;option value='"+col1+"'&amp;gt;"+col2+"&amp;lt;/option&amp;gt;";
                       }
           //console.log(html);
            $('#cols').html(html);
            $("#cols option:first").attr('selected','selected');
            $("#cols option:eq(0)").prop("selected", true)
            $("#cols")[0].selectedIndex = 0; 
            $.mobile.changePage("#uib_page_1", {transition: "slide"});
            var myselect = $("#cols");
            myselect.selectmenu('refresh');
        },
        error: function(msg) {
        navigator.notification.alert("Unable to retrieve cols:" + msg.d);
        }
    });
return false;
}&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 09:29:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045347#M47738</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-03T09:29:44Z</dc:date>
    </item>
    <item>
      <title>Thank you, I'll try it.</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045348#M47739</link>
      <description>&lt;P&gt;Thank you, I'll try it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 09:40:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045348#M47739</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-03T09:40:08Z</dc:date>
    </item>
    <item>
      <title>OK great, just to say I use</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045349#M47740</link>
      <description>&lt;P&gt;OK great, just to say I use MYSQL but the same goes for other databases. I also tend to use VB.NET but again post my VB code to a VB to C# convertor if your need another language.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 09:45:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045349#M47740</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-03T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045350#M47741</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a problem, my WS needs header credentials.&lt;/P&gt;

&lt;P&gt;This is my WS url:&amp;nbsp;&lt;A href="http://zipris.co.il/nextws/next.asmx"&gt;http://zipris.co.il/nextws/next.asmx&lt;/A&gt;&amp;nbsp;and the method is&amp;nbsp;&lt;SPAN style="color: rgb(26, 26, 166); font-family: monospace; font-size: 13px; line-height: normal;"&gt;test_Header_json.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(26, 26, 166); font-family: monospace; font-size: 13px; line-height: normal;"&gt;How can I make a script with header?&amp;nbsp;&lt;/SPAN&gt;UserId&amp;nbsp;and and&amp;nbsp;UserPassword?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 06:18:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045350#M47741</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-04T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045351#M47742</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm not sure I get what you mean.&lt;BR /&gt;
	If you want to confirm a username and password then send this values in the data string from Javascript like this:-&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;function verifyDetails(){
  var username = $('#username').val();
  var password = $('#password').val();
$.ajax({
        type: "POST",
        url: "http://myURL/service1.asm/confirmUser",
        data: "{'username':'" + username + "','password':'" + password + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        async: true,
        crossDomain: true,
        success: function (msg) {
            if (msg.d) {
                navigator.notification.alert("Your username is correct.",saveDismissed,"Success");
                }
                 else 
                {
                    navigator.notification.alert("Your username and or password is incorrect.",DeviceDismissed,"User Details Error"); 
  
                }
        },
                  
        error: function(jqXHR, textStatus, errorThrown) {
                navigator.notification.alert("Error cannot confirm user details: " + textStatus + ' : ' + errorThrown);
        }
    });

}&lt;/PRE&gt;

&lt;P&gt;Your ASMX web service then returns True or False depending on whether the credentials are correct.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 09:56:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045351#M47742</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-04T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045352#M47743</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is the request for the WS, as you can see the user and pass are in the header.&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&amp;gt;
&amp;lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
&lt;EM&gt;&lt;STRONG&gt;&amp;lt;soap:Header&amp;gt;
&amp;lt;tns:WSCredentials xmlns:tns="http://tempuri.org/"&amp;gt;
&amp;lt;tns:UserId&amp;gt;user&amp;lt;/tns:UserId&amp;gt;
&amp;lt;tns:UserPassword&amp;gt;pass&amp;lt;/tns:UserPassword&amp;gt;
&amp;lt;tns:Server&amp;gt;&amp;lt;/tns:Server&amp;gt;
&amp;lt;/tns:WSCredentials&amp;gt;
&amp;lt;/soap:Header&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;
&amp;lt;soap:Body&amp;gt;
&amp;lt;tns:test_Header_json xmlns:tns="http://tempuri.org/"/&amp;gt;
&amp;lt;/soap:Body&amp;gt;
&amp;lt;/soap:Envelope&amp;gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 11:22:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045352#M47743</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-04T11:22:18Z</dc:date>
    </item>
    <item>
      <title>Any reason why you are using</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045353#M47744</link>
      <description>&lt;P&gt;Any reason why you are using SOAP, why not use &amp;nbsp;HTTP POST as per my example.&lt;/P&gt;

&lt;P&gt;Either way you should be able to send the Username and Password as criteria to your web service.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 11:30:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045353#M47744</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-04T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045354#M47745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Unfortunetly it does not work.&lt;/P&gt;

&lt;P&gt;I press the button but nothing happened.&lt;/P&gt;

&lt;P&gt;Any idea?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;AJAX and XDK&amp;lt;/title&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;" /&amp;gt;
    &amp;lt;script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-2.0.3.min.js"&amp;gt;&amp;lt;/script&amp;gt;  
    &amp;lt;script src="intelxdk.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="xhr.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
        function doAJAX() {
        $.ajax({
        type: "POST",
        url: "http://zipris.co.il/nextws/next.asmx/test_json",
        data: "{'col1':'" + localStorage.getItem("col1") + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        async: true,
        crossDomain: true,
        success: function(json){
        jsonArray = $.parseJSON(json.d);
            $("#cols").empty();
                       var html = "&amp;lt;option&amp;gt;[Select]&amp;lt;/option&amp;gt;";
             for(i=0; i &amp;lt; jsonArray.length; i++)
                       {
                       col1 = jsonArray&lt;I&gt;.EmpNo;
                       col2 = jsonArray&lt;I&gt;.EmpName;
                       html += "&amp;lt;option value='"+col1+"'&amp;gt;"+col2+"&amp;lt;/option&amp;gt;";
                       }
           //console.log(html);
            $('#cols').html(html);
            $("#cols option:first").attr('selected','selected');
            $("#cols option:eq(0)").prop("selected", true)
            $("#cols")[0].selectedIndex = 0; 
            $.mobile.changePage("#uib_page_1", {transition: "slide"});
            var myselect = $("#cols");
            myselect.selectmenu('refresh');
        },
        error: function(msg) {
        navigator.notification.alert("Unable to retrieve cols:" + msg.d);
        }
        });
        }
&amp;lt;/script&amp;gt;
&amp;lt;style&amp;gt;
    body {font-family:arial;background-color:white}
&amp;lt;/style&amp;gt;    
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;         
    &amp;lt;h3&amp;gt;AJAX Call&amp;lt;/h3&amp;gt;
    &amp;lt;button onclick="doAJAX()"&amp;gt;AJAX Call&amp;lt;/button&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;select name="myselect"&amp;gt;&amp;lt;/select&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:54:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045354#M47745</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-04T19:54:06Z</dc:date>
    </item>
    <item>
      <title>Zipsoft,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045355#M47746</link>
      <description>&lt;P&gt;Zipsoft,&lt;/P&gt;

&lt;P&gt;Have you stepped through your code while running on device? Where does it get stuck? Using the Debug Tab to step through your code can be very helpful (or the Test Tab with weinre for a Windows 8 device).&lt;/P&gt;

&lt;P&gt;Pamela&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 21:02:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045355#M47746</guid>
      <dc:creator>Pamela_H_Intel</dc:creator>
      <dc:date>2015-11-04T21:02:25Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045356#M47747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How can I debug javascript?&lt;/P&gt;

&lt;P&gt;I put alert message in the function &lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;doAJAX&lt;/SPAN&gt;&amp;nbsp;and it does not go after the&amp;nbsp;$.ajax({ .&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 06:29:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045356#M47747</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-05T06:29:59Z</dc:date>
    </item>
    <item>
      <title>If you run your ASMX file</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045357#M47748</link>
      <description>&lt;P&gt;If you run your ASMX file directly in a browser&lt;/P&gt;

&lt;P&gt;&lt;A href="http://zipris.co.il/nextws/next.asmx/test_json" style="font-size: 13.008px; line-height: 14.3088px; color: blue !important; background-color: rgb(248, 248, 248);"&gt;http://zipris.co.il/nextws/next.asmx&lt;/A&gt;&amp;nbsp;then click on test_json you get the following error:-&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11.2px; line-height: normal;"&gt;The test form is only available for requests from the local machine.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11.2px; line-height: normal;"&gt;You will need to fix this error before you can test your ASMX script from a live server. Check your web.config file and check this line in your asmx file&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;DIV class="line alt2" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background: none rgb(248, 248, 248) !important;"&gt;
	&lt;TABLE style="border-collapse: collapse !important; border: 0px !important; font-size: 1em !important; margin-top: 0px !important; margin-bottom: 0px !important; width: auto !important; vertical-align: baseline !important; outline: 0px !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; line-height: 1.1em !important; min-height: auto !important; background: none !important;"&gt;
		&lt;TBODY style="border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; background: none !important;"&gt;
			&lt;TR style="border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; background: none !important;"&gt;
				&lt;TD class="content" style="border-width: 0px 0px 0px 3px !important; padding: 0px 0px 0px 0.5em !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; outline: 0px !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; color: rgb(0, 0, 0) !important; background: none !important;"&gt;&lt;CODE class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important; background: none !important;"&gt;' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.&lt;/CODE&gt;&lt;/TD&gt;
			&lt;/TR&gt;
		&lt;/TBODY&gt;
	&lt;/TABLE&gt;
&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;
	&lt;TABLE style="border-collapse: collapse !important; border: 0px !important; font-size: 1em !important; margin-top: 0px !important; margin-bottom: 0px !important; width: auto !important; vertical-align: baseline !important; outline: 0px !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; line-height: 1.1em !important; min-height: auto !important; background: none !important;"&gt;
		&lt;TBODY style="border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; background: none !important;"&gt;
			&lt;TR style="border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; background: none !important;"&gt;
				&lt;TD class="number" style="border-width: 0px !important; border-style: initial !important; padding: 0px !important; outline: 0px !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; color: rgb(175, 175, 175) !important; background: none !important;"&gt;&lt;CODE style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px 0.3em 0px 0px !important; border: 0px !important; outline: 0px !important; text-align: right !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 2.7em !important; line-height: 1.1em !important; min-height: auto !important; display: block !important; background: none !important;"&gt;09&lt;/CODE&gt;&lt;/TD&gt;
				&lt;TD class="content" style="border-width: 0px 0px 0px 3px !important; padding: 0px 0px 0px 0.5em !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; outline: 0px !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; min-height: auto !important; color: rgb(0, 0, 0) !important; background: none !important;"&gt;&lt;CODE class="plain" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important; background: none !important;"&gt;' &amp;lt;System.Web.Script.Services.ScriptService()&amp;gt; _&lt;/CODE&gt;&lt;BR /&gt;
					&amp;nbsp;&lt;/TD&gt;
			&lt;/TR&gt;
		&lt;/TBODY&gt;
	&lt;/TABLE&gt;
&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 14.3088px;"&gt;Make sure you uncomment the line above as suggested.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 14.3088px;"&gt;You can run your script live once you have fixed the issue above and manually enter the data your ASMX script expects and then see what JSON data is returned to see if this is the format your Javascript is expecting.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="line-height: 14.3088px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 14.3088px;"&gt;You can use the emulate tab and open the debug console, insert breakpoints to test your javascript and also check what values are returned from the ASMX script etc.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045357#M47748</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-05T09:26:00Z</dc:date>
    </item>
    <item>
      <title>Believe me, the WS is not my</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045358#M47749</link>
      <description>Believe me, the WS is not my problem.
The question is why the program does not passes $.ajax({ ?</description>
      <pubDate>Thu, 05 Nov 2015 11:41:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045358#M47749</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-05T11:41:50Z</dc:date>
    </item>
    <item>
      <title>Can you refer me please to an</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045359#M47750</link>
      <description>&lt;P&gt;Can you refer me please to an &lt;STRONG&gt;working&lt;/STRONG&gt; example of Intel XDK html5 Ajax calling a web service or a website?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:48:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045359#M47750</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-05T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Your code works fine.</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045360#M47751</link>
      <description>&lt;P&gt;Your code works fine.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I have just copied and pasted your Javascript and displayed the results in a DIV called cols. The Button has an onclick event to fire doAJAX()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="screengrab.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8173iCAD67DBEB9600E15/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="screengrab.png" alt="screengrab.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Above is a screen grab from the XDK Emulator Tab.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:21:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045360#M47751</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-05T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Can you send me please the</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045361#M47752</link>
      <description>&lt;P&gt;Can you send me please the XDK project?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:34:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045361#M47752</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-05T14:34:03Z</dc:date>
    </item>
    <item>
      <title>I Have sent you a private</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045362#M47753</link>
      <description>&lt;P&gt;I Have sent you a private message with a link to the project.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:38:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045362#M47753</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-05T14:38:55Z</dc:date>
    </item>
    <item>
      <title>Thank you.</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045363#M47754</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;I appreciate it a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:25:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045363#M47754</guid>
      <dc:creator>zipsoft_z_</dc:creator>
      <dc:date>2015-11-05T15:25:56Z</dc:date>
    </item>
    <item>
      <title>Glad I could help.</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045364#M47755</link>
      <description>&lt;P&gt;Glad I could help.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:27:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-call-SOAP-asmx-web-service-within-XDK-project/m-p/1045364#M47755</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2015-11-05T15:27:33Z</dc:date>
    </item>
  </channel>
</rss>

