Call WCF Service using Javascript

12 views
Skip to first unread message

vijay kumar

unread,
Aug 3, 2011, 7:16:32 AM8/3/11
to newidea_or...@googlegroups.com
Hi friends
 
                 I am trying to get data from WCF service by using javascript ,HTML5 but not able to get it .
 
so any body aware of wcf service javacript . could you share your experience . which method is correct
 
for calling WCF service . How can i pass NTLM to wcf for getting authentication.
 
I tried sample code for connect with WCF getting eror but if i pass local xml its working fine .
 
<script type="text/javascript">

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari

               xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5

             xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.open("GET","URL",false,username,password);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
 
Regards
vijayakumar
 

Shailendra shail

unread,
Aug 5, 2011, 2:26:00 AM8/5/11
to newidea_or...@googlegroups.com
This is nice question..

I am redirecting this question to mr. Kanchan. Since he has worked in WCF he can give better answer for this question. Even i think Nishant may have answer for this question since he is expert of HTML5.

Mr. kanchan, can you give some information on this?
Reply all
Reply to author
Forward
0 new messages