JQuery :: How To Access Webservice

Sep 9, 2010

I have two project both on same machin under same solution.One is my webservice and another inculde my webproject that access that webservice using jquery .I am using flexigrid control to populate my data.it is working fine when i am trying to use the webservice on my machin under same solution but when i try to use webservice reside on another machin it not working for me. This is my aspx page

[Code]....

when i chage the [URL] from to this [URL] it is not giving the same result as that of previous url.why it is not working i am not gettting it. I m not getting why it is happing so.

View 5 Replies


Similar Messages:

C# - How To Fetch Return Values Between Jquery Functions And Post Ajax Jquery Request To Webservice

Aug 26, 2010

I have the following code where the function codeaddress geocodes the text feild value and returns geocoded value , geocoded value is stored in variable example ,how will i return the variable v2 to the function call and post to asmx webservice.

[code]....

View 1 Replies

WCF / ASMX :: Way To Access External Webservice

Oct 21, 2010

I'm trying to connect to a webservice but my experiens of webservice i limited

Code]....

The values that I would like to getis:carWorkOrderInfoResult.areaIdcarWorkOrderInfoResult.workOrderNumber

View 2 Replies

Windows Service Can't Access Webservice

May 2, 2010

We have two servers, both are containing a local application connecting to local web service, applications and services are identical on both servers. One of the servers work just fine, The other one is just dead, I have impression the the security configuration are different on those servers. What prevents an application X from connecting a web-service, given that another application y on the same server can connect to it. and X is a windows service. What I should check, what is chances?

View 2 Replies

AJAX :: Can't Access WebService From JavaScript

Jul 21, 2010

After watching [URL] learning guide in accessing Web Service from JavaScript[/url] I was doing the same thing in order to test it. And found out that in my JavaScript I don't have any WebService in my IntelliSense. Such thing happens if I create WebService and WebSite either in one common solution or in the different.

View 23 Replies

WCF / ASMX :: Unable To Access The Webservice?

Nov 29, 2010

i have developed a webservice using wcf. and i deployed on IIS 7.

when i try to browse the svc file(http://localhost/service1.svc) it is opening .

But when i browse with ( http://localhost/service1.svc ?wsdl ) it is saying page canot be diplayed.

View 2 Replies

JQuery Not Calling Webservice

Feb 6, 2011

I am new to programming especially jQuery and webservices. I want to pass the values to the to database via the webservice. Below is the code for the .aspx page:

<html xmlns="[URL]xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="[URL]"
rel="stylesheet" type="text/css" />
<script src="[URL]" type="text/javascript"></script>
<script src="[URL]"
type="text/javascript"></script>
<script src="[URL]"
type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#sortable").sortable();
$("#sortable").disableSelection();
$("#sortable input[type=text]").width($("#sortable img").width() - 10);
$("#sortable label").mouseover(function () {
$(this).parent().children("input[type=text]").show().val($(this).html());
$(this).hide();
});
$("#sortable input[type=text]").mouseout(function () {
$(this).parent().children("label").show().html($(this).val());
$(this).hide();
});
$(".ContainerDiv").hover(
function () {
$(this).find(".deleteClass").show();
},
function () {
$(this).find(".deleteClass").hide();
});
$(".deleteClass").click(function () {
$(this).closest("li").remove();
});
$("#orderPhoto").click(function () {
var photos = $.map($("li.ui-state-default"), function (item, index) {
var imgDetail = new Object();
imgDetail.Id = $(item).find("img").attr("id");
imgDetail.Caption = $(item).find("label").html();
imgDetail.Order = index + 1;
return imgDetail;
});
//photos contains all the photo and order and the chhanged caption.
//pass to server
$.ajax({
type: "POST",
url: "WebService.asmx/updateOrder",
data: JSON.stringify(photos),
contentType: "application/json; charset=utf-8",
success: function (data) {
if (data.d === "saved") {
$("<p>").text("New order saved!")
.addClass("success").appendTo("#left");
} else {
$("<p>").text("Save failed")
.addClass("failure").appendTo("#left");
}
}
});
});
});
</script>
<style type="text/css">
#sortable
{
list-style-type: none;
margin: 0;
padding: 0;
}
#sortable li
{
position: relative;
margin: 3px 3px 3px 0;
padding: 1px;
float: left;
text-align: left;
}
.deleteClass
{
/* PhotoListItem is relative so relative to it */
position: absolute;
top: 1px;
right: 3px;
background: black;
color: Red;
font-weight: bold;
font-size: 12px;
padding: 5px;
opacity: 0.60;
filter: alpha(opacity="60");
margin-top: 3px;
display: none;
cursor: pointer;
}
.deleteClass:hover
{
opacity: 0.90;
filter: alpha(opacity="90");
}
.image_resize {
width: 250px;
height: 250px;
border: 0;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ListView ID="ListView1" runat="server" GroupItemCount="15">
<LayoutTemplate>
<ul id="sortable">
<li id="groupPlaceholder" runat="server">1</li>
</ul>
</LayoutTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server">
</td>
</tr>
</GroupTemplate>
<ItemTemplate>
<li class="ui-state-default">
<div class="ContainerDiv">
<div class="deleteClass">X</div>
<img id='<%#Eval("photo_id")%>' src='<%# "uploads/"+Eval("photo_file_name")%>' alt="" class="image_resize" />
<div style="height: 25px; margin-top: 3px">
<label>
<%# Eval("photo_title")%></label>
<input type="text" style="display: none" />
</div>
</div>
</li>
</ItemTemplate>
</asp:ListView>
<input type="button" id="orderPhoto" value="Save change" />
</form>
</body>
</html>

I used the debugging tool and can confirm that the photos contains the correct values. Its just calling the webservice part that I am unsure about.

View 1 Replies

C# - How To Access Webservice Deployed In Remote Server

Jan 18, 2011

how to add web service which is deployed in remote server. externally i unable to access that service..in that remote server only that service will run but we don't have Ms.net Environment to add service to my application in that server. how to add that web service to my application ,not accessig externally that service URl, internally Executing that URl. How can i add that service to my application on my developer PC ?

View 2 Replies

AJAX :: Access Javascript Object From Webservice?

Apr 23, 2010

I'm trying to pass a javascript object array back to a vb .asmx web service.

I can't even tell you how many different things I've tried, so i'm confused more than when I started.
Below is an example of the client side code I am using.

[Code]....

I'm adding my script reference in my vb page as follows, and can access other web methods fine.

[Code]....

how to be able to access these objects within the web service method. I need to be able to iterate though all the people from the javascripts array so that I can do some other functions, such as validation, adding them to a database, etc.

View 3 Replies

WCF / ASMX :: Restrict Public Access To Webservice?

Nov 28, 2010

I have this Internet web service page(webservice.asmx) being consumed jquery ajax call.

And I am hoping to restrict public request to this webservice other than request from local pages (aspx or jquery ajax call).

The web service checks for form-authentication before it gets executed but I just don't feel comfortable the .asmx page and list of services are viewable.

So users can't just type www.mysite.com/webservice.asmx to access my webservice.

View 2 Replies

Parsing Simple Xml With Jquery From Webservice?

Nov 8, 2010

I'm breaking my head over this for a while now and I have no clue what I do wrong. The scenario is as followed, I'm using swfupload to upload files with a progressbar via a webservice. the webservice needs to return the name of the generated thumbnail. This all goes well and though i prefer to get the returned data in json (might change it later in the swfupload js files) the default xml data is fine too.

So when an upload completes the webservice returns the following xml as expected (note I removed the namespace in webservice):

<?xml version="1.0" encoding="utf-8"?>
<string>myfile.jpg</string>

Now I want to parse this result with jquery and thought the following would do it:

var xml = response;
alert($(xml).find("string").text());

But I cannot get the string value. I've tried lots of combinations (.html(), .innerhtml(), response.find("string").text() but nothing seems to work. This is my first time trying to parse xml via jquery so maybe I'm doing something fundemantally wrong. The 'response' is populated with the xml.

View 2 Replies

Webservice Doesn't Get Called By JQuery

May 25, 2010

I want to call a webservice using jQuery.ajax() but the webervice doesn't get called. - If I change the url: to reference a .ashx file it gets called but not .asmx?

Here's the code I'm using:

jQuery.ajax({
type: "POST",
url: "/services/CheckUsername.asmx/CheckUsername", // this doesn't get called
//url: "/services/CheckUsername.ashx/ProcessRequest", this gets called
data: '{ "context": "' + "username" + '"}',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (msg) {
alert("Result: " + msg);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert("Error: " + textStatus)
}

The .ashx file gets called but a parsererror is retuned because it's returning http context - how can I modify this to get a string return type from a webservice?

View 2 Replies

JQuery Autocomplete Not Working With Webservice?

Mar 24, 2011

I have this code:

$('#' + textboxID).autocomplete({ delay: delay, source: ["cats", "dogs"] });
which works fine.
I want to use a webservice:
$('#' + textboxID).autocomplete({ delay: delay, source: webserviceURL});
This doesn't work. My webservice URL is /blah/blah.asmx/myMethod
The webservice definition is:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List<string> myMethod(string term)
{
// Logic here, return list of strings
}

The method never gets called. Can anyone point me in the right direction? I have other webservices in the same .asmx which work fine with other controls (other controls are using $.ajax to call them).

Edit: Getting closer, I now get a 500 error saying Request format is unrecognized for URL unexpectedly ending in '/myMethod'. I think it's not treating my url quite right..

View 2 Replies

JQuery :: Call Webservice With Parameter?

Sep 13, 2010

how to call web service with jquery in asp.net with param value

View 7 Replies

Security :: Webservice Is Denied Access To Network Folder

May 27, 2010

I wrote a web service sometime back, and uploaded to one of our network Server's IIS. The webservice needs to access a network folder, which was working perfectly fine till a month ago. Now, when we use the webservice in our .Net application, it fails with the exception message "Access to the path '\<networkMachine ><Folder >' was denied" (may be some group policies changed). But when I run the webservice from my local machine's Visual Studio debugger, it can access that folder. What could be different on the server's IIS w.r.t. my service? Why was it able to access the network folder before but not now? Please note that I can manually access that shared network folder from my machine, and also when I remote desktop to that <networkMachine> from windows explorer.

I saw in the task manager on the server that the IIS process w3wp.exe is running under 'NETWORK SERVICE' account. Though the network folder is not shared specifically with this account, but that has given read & execute access to 'Everyone'. Then what is the problem that it cannot access the folder. By accessing I mean creating a 'DirectoryInfo' object of the path '\<networkMachine ><Folder >' and reading all the subfolders -
just read.

View 3 Replies

WCF / ASMX :: Invoking Java - No Access To Webservice At Dev Time

Oct 19, 2010

Here's my problem: I have an asp.net app that invokes a java/axis based webservice through a wsdl file provided by my customer. But, as i had no access to this webservice at the dev time, i've created a fake .net based webservice, with the same methods, returning some valid data, so i'd be able to test the integration interface. The problem is, when i add the service reference on my app, pointing to my fake webservice (.net), it's class has a certain name, and when i point it to my customer's wsdl file, it's class has a different name. Generated class name when i add the service reference by:

- .NET fake webservice = "TransferenciaEndpointSoapClient"
- wsdl file of the java/axis webservice = "TransferenciaEndpointClient"

I want the class i've created in my fake webservice to keep the same name of the wsdl, when i add the service reference on my app. I tried to add a "web reference" instead of a "service reference", but it did not work. I also tried to change the name of the class on the "Reference.cs" file, it works on my environment, but it doesn't when i put the generated bin on my customer's environment. I'd like to solve this without having to create a java/axis based fake webservice.

View 3 Replies

WCF / ASMX :: How To Get Access Public Properties From Webservice Class

Aug 2, 2010

i have websrvice class in this i declared a webmethod and a public property my problem is i want to acess service class public property in my asp.net web application after creating proxy object.

service class:

[Code]....

View 1 Replies

Jquery - Can Call To A Webservice To Validate A Field

Apr 4, 2011

I am trying to use Jquery Validate and making a call to a webservice to validate a field. But when I do this I get the Firebug error :

invalid label
{"d":false}
$("form").validate({
//errorLabelContainer: $("#divErrors"),
rules: {
txtUserName: {
required: true,
minlength: 4,
maxlength: 20,
[code]...

View 2 Replies

JQuery :: Unable To Get To The Webservice Using Ajax Post

Oct 15, 2010

I need to pass a customer id to get some data back for a customer from a webservice. I can't figure out how to get to the webservice, I have a breakpoint set in the webmethod but it's not being hit and the alert box is not popping up either. For a test I am just trying to show some value from the returned data in an alert box. Note I am just hard coding the customer id of 1001. The webmethod takes a parameter of string customerid.

[Code]....

Does some one know what's missing or how to debug this issue?

View 3 Replies

Calling WebMethods / WebService Using Jquery Is Blocking?

Apr 6, 2010

I'm generating a file on the server which takes some time. For this, I have a hidden iframe which I then set the .src attribute to an aspx file i.e iframe.src = "/downloadFile.aspx"While this is taking place, I'd like to have a call to a web service return the progress. To do this, I thought I could use window.setInterval or window.setTimeout but Javascript seems to be blocked as soon as I set the iframe src attribute.Does anyone know how to get around this or perhaps try a different approach?I have also tried handlers, but the request never gets to the server so I'm assuming is a browser/javascript issue.

//Function that gets the file
function GetFile() {
setTimeout(GetProgress, 1000);
var iframe = document.createElement("iframe");

[code]...

View 2 Replies

How To Call Cross Domain WebService / WCF In JQuery

Nov 15, 2010

UPDATE1:

here is what i am getting when i copy and paste the service url in the IE browser:

[Code]....

View 5 Replies

AJAX :: JQuery / Javascript Calling Webservice

Oct 5, 2010

I've tried a bunch of different examples and still can't get this to work. I have a jQuery GalleryView control I'm using and I simply want to log impressions. I set up a webservice that works, but I can't figure out how to get it to work in javascript. I have verified that the webservice is working as expected.

Imports System.Web

View 2 Replies

JQuery :: AJAX Call To Webservice Is Not Working?

Nov 20, 2010

I have a webservice "DataService.asmx" which I am using for AJAX calls for insert, update, delete and some other tasks. All the pages are calling webservice smoothly but this new page I added and calling my webservice using the same ajax method not working. Strange thing is that neither its going on SUCCESS nor FAILURE...and put a breakpoint on my webservice but its not going into the webservice...plz help as its been 6 hours now figuring what the problem is..here is the code.

[Code]....

here is my webservice

[Code]....

and here is the Code behind

[Code]....

View 5 Replies

JQuery :: Get Data From Databse Using Json With Webservice?

Dec 23, 2010

i want to get data from my database and dispaly it in my web page using json with webservicei'm going to post my code i create a webservice and add method which return string to get all data so my code like this

[Code]....

and in my page

[Code]....

View 6 Replies

Security :: HTTP Status 403: Forbidden Error When Trying To Access Webservice?

Feb 10, 2011

I hace created a webservice, that is on one server and then I created a web application on another server to consume that webservice. My web application uses threading. In my web application, I call the webservice and it returns me the response. Then my thread sleeps for 20 minutes and then it again calls webservice, but when i call the webservice second time , it fails. Here is the error and stack trace:-

Stack Trace:- at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TransactionExport.LocalWebService.TransactionExportStaging.GetDays(String projCode) in C:inetpubwwwrootTransactionExportWeb ReferencesLocalWebServiceReference.vb:line 102
at TransactionExport.TransactionExport.LoadDays() in C:inetpubwwwrootTransactionExportExport.vb:line 267

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved