Web Forms :: How To Make WebService API
Jan 5, 2014
We have sql database for more than 50,000 subscribers with us. Now many people approaching us to get our database access and wants to integrate it with their website through API or webservices.
My requirement is how can develop webservices or API of my sql database so other companies can integrate it with their website and access our updated database.
View 1 Replies
Similar Messages:
Oct 14, 2010
I have a webservice (.asmx) and I want it to retain a value on a per-user basis. Is this possible?
[code]...
View 3 Replies
Jun 19, 2010
Actually I am trying to learn jQuery Ajax calls to asp.Net webservices.
I have been trying to call the webmethod below:
[code]....
Do I need to serialize my object in some way before setting the 'data' attribute, so that I can call $.ajax() function?
View 2 Replies
Mar 9, 2010
I'm working with the MicrosoftAjax.js libraries to make my webservice calls via javascript, right now all my services are returning basic types, like string, int, bool. can i also have my services return things like DataSets, DataTables, or custom Classes that I have built to my javascript side?
View 3 Replies
Aug 5, 2010
In Visual Studio 2008 I have a Class Library project (called Media) to which I added a Web Reference (not a Service Reference) to a third-party web service (wsdl). In the Class Library project a proxy class is created for using the service along with several classes for the types used in that service.
I also have a second Class Library (called Sync) that references the first one. And then I have a Web Site project that references the second class library. All of this is .NET 3.5
So Web Site > Class Library (Sync) > Class Library with web service reference (Media)
I want to step into the generated code, so I fire up the web site in IIS 7.5 and trigger the call to a method in the second class library (Sync) that in turn should call the web service proxy. I was fully expecting to hit the breakpoint, but instead got an exception:
Unable to generate a temporary class(result=1). error CS0029: Cannotimplicitly convert type Media.WebService.multiValuedAttribute to Media.WebService.multiValuedAttribute[]
Why is ASP.NET trying to generate a temporary class? Don't I already have the generated class from the first Class Library (Media)?
View 1 Replies
Sep 3, 2010
I would like to make a custom accordion, in which I have 2 panes, but where you couldn't open the second one until you clicked a validation button in the first one that would open the second...
I tried to just make a button that would hide the first pane but I cant get to make it work.
[Code]....
[Code]....
View 7 Replies
Jan 29, 2011
I have a user control is shown through a SimpleModal popup (JQuery), this user control gets some data from database and displays them (the details of a record).
The problem is that this user control makes a round-trip to gets the data every PostBack for the parent page even it's hidden.
I wonder if I could make it gets its data only if the popup is appeared.
I tried to put it inside a Panel with false for Visible property and change it to true when I open the popup, but it stil call Page_Load which gets the data from database!
View 2 Replies
Mar 9, 2011
provide me the cascading dropdown code upto 3 levels without using the WebService .
View 1 Replies
Jan 27, 2010
In my application, i want to do URL encoding And Decoding in my webservice. how i will do encoding and decoding.
View 4 Replies
Mar 16, 2011
I have several JS proxies generated on the page through using code like:
scriptManager.Services.Add(new ServiceReference("~/Service.asmx"));
This code generates the following JS proxy on ASPX page where it is used:
<script src="../../Service.asmx/js" type="text/javascript"></script>
This file is not being cached in browser cache. I checked in firebug and in header it says:
Cache control: private
All other JS and CSS files are being cached with "Cache-Control: public,max-age=8640000". In web.config I have:
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="100.00:00:00" />
</staticContent>
How can I get JS Proxy files to cache?
View 1 Replies
Mar 16, 2010
I have a web sevice using windows securitybasic type, published in a Forefront TMG and I work well: example of code
[Code]....
however, this code will not work if I have the Forefront TMG instead of "basic" change it to "form"Error displayed;The request failed with an empty responseheader:
(Connection: close
Content-Length: 0
Location: https: / / servername / CookieAuth.dll? GetLogon? Curl = Z2Fagm_xxx.asmx & reason = 0 & Formda = 3
Set-Cookie: cadata6827CB10C3EB4FE98B62C7ACD49118E7 =; path = /; expires = Thu, 01-Jan-1970 00:00:00 GMT
)
I get this error before getting the service.my question is how can I send the credentials to the fore front tmg?
View 1 Replies
Oct 27, 2010
Is it possible to Pass the Folder through webservice?
View 2 Replies
May 7, 2015
I am using following webmethod
[WebMethod]
public DataSet GetData()
{
List<City> city = new List<City>();
DataSet ds = new DataSet();
[CODE]...
But it give error like
Error - xml parsing error syntax error line number 1 column 1 in asp.net
View 1 Replies
Mar 25, 2011
I have a number of dropdownlists which use cascading dropdownlist / webservices. All fine. Now user wants last dropdown to be multi-select. So I want to replace the last dropdownlist with a listbox. But there is no cascadinglistbox. I'm looking for a straight-forward solution if possible. Either how to fill the listbox with the existing webservice which fills the last dropdownlist, or - is it possible to use the contrents of the last dropdown as a datasource for the listbox? I thought maybe hide the last dropdown and loop through its contents to fill the listbox.
View 2 Replies
Feb 15, 2011
My project use asp.net web form, and I code it with masterpage, page and mutil webcontrol to render a web page. A problem, request it slowly. I want to increase performace. I use webservice to request data, whole web control has code to request data from webservice.
I review code, and I think if my web used webservice pooling to render a webpage. But I haven't know how to code better, remove all webcontrol, and move their code to create a web page like asp web page (not asp.net)! using only one webservice to request data...
View 1 Replies
Nov 10, 2010
I have simple webservice method.
from my asp.net page i'm asynchronously invoking that method. and i have some code logic which shoudl be executed once the Async call is completed. but HelloWorldCompleted is never fired.
[Code]....
[Code]....
View 1 Replies
Jan 4, 2011
I wrote a webservice that returns an array of Strings. Below is the code for the webservice:
WebMethod()> _
Public Function CheckNotices(ByVal UserId As String) As String()
' Dim time As String = Now.Date.ToString
Dim dt As New DataTable
Dim ob As New BLL.ClsBLL
[Code]....
View 4 Replies
Oct 26, 2012
writing name space as URI instead of HTTP URL in WebServie like this [WebService(Namespace = "http://www.samplesite.com/somepath/sth100/Service1.asmx", Name = "STHDBtoXMLWebService")]
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="soonthyehang.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
View 1 Replies
Mar 8, 2011
Is there any way to load [main] menu items in run-time? for instance using WebServices? My web application's main menu is so big and takes a long time to be loaded. So that, i want to load its items on demand. I want to load the sub-items of the menu item user is hovering.
View 1 Replies
Sep 15, 2010
I am generating a Pdf file from a webservice to local machine. Once the pdf file is saved to local machine, i would like to print this file automatically without Popping up the Print Dialogue.
I mean without any user interaction that pdf file should be printed.
View 1 Replies
Sep 22, 2010
I am new to ASP.NET but what i am trying to do is create a webservice (in C#) with a method that basically returns the IIS HTTP 202 Error Code (ACCEPTED) page.Is there any method that would automatically return this? Or would i need to write some sort of code that would cause the error message 202 to display?
View 1 Replies
Jan 5, 2011
I have an asp.net web application in which i use several we services to serve several ajax requests. The problem is how to determine whether the corresponding call comes the page that i have served.I use forms authentication in my pages. Is there any way in which i can authorise the user calling the weservice through the same forms authentication.
View 3 Replies
Oct 9, 2012
I have created a asmx web service.The service will interact with SQL Server database to Get, Insert and Update of some tables in my db.I have one Service method called AddItem which takes a class object as parameter. with that parameter I am inserting the values into the database. In the same way I have another service method that Gets all the Items from db using the same class and returns the class object as the return type for my service.
Here is my sample AddItem() and GetAllItems() prototype
Collapse | Copy Code
View 1 Replies
May 7, 2015
I have deployed my webservice in server it shows the error like "Parser Error Message: Could not create type 'WebServiceFB'" ....
View 1 Replies
Dec 8, 2010
I am having a DataGridView in that having 4 columns I need to bind 1 hyperlink column to the webservice which returns me DisplayText and Navigation URL.
View 1 Replies