Click here to Skip to main content
15,913,685 members
Everything / ASMX

ASMX

ASMX

Great Reads

by Ido Flatow
WCF/ASMX Interoperability – Removing the Annoying xxxSpecified when adding a web reference to a WCF service
by Nanda Kumar Chintam
This tip explains how to perform unit testing for business logic written in App_code for a website project.
by 吴骏明
Generate interface for WebService client stub for unit testing.
by Grasshopper.iics
Learn easy data management, SqlLite database, XML Web services, File Database in Android with a Real time App

Latest Articles

by Grasshopper.iics
Learn easy data management, SqlLite database, XML Web services, File Database in Android with a Real time App
by Nanda Kumar Chintam
This tip explains how to perform unit testing for business logic written in App_code for a website project.
by 吴骏明
Generate interface for WebService client stub for unit testing.
by Ido Flatow
WCF/ASMX Interoperability – Removing the Annoying xxxSpecified when adding a web reference to a WCF service

All Articles

Sort by Score

ASMX 

23 Mar 2012 by Ajith The Great
Declare @flt as FloatSet @flt = 3.44445556Select round(@flt,1)OUTPUT :3.3999999999999999AND IF YOU USE MONEY DATATYPE Declare @flt as MONEYSet @flt = 3.44445556Select round(@flt,1)OUTPUT : 3.40BETTER TO USE MONEY DATATYPE Hope This May Help You..
23 Mar 2012 by Praveen Kullu
Simply use Math.Round function.Function usage:Math.Round(decimal d,int dec);According to your Question:double num = Math.Round(3.44445556, 1);
18 Apr 2011 by Sandeep Mewara
I got this source code from someone else and I need to change some source codeAdd the source to your project solution. Clean the project and build it. Add this webservice-reference in your web application. Now, try. I can not change it because I can not debug it.BTW, I am not sure on why...
18 Jan 2012 by Programm3r
Hi,Please have a look at the following:System.UnauthorizedAccessException: Access to the path[^]Access to the path is denied[^]Kind regards,
18 Jan 2012 by NandaKumer
check these blogshttp://stackoverflow.com/questions/2235616/directory-deletepath-true-always-gives-error-asp-net-3-5-mvc[^]http://stackoverflow.com/questions/6490305/system-ios-directory-delete-method-sometimes-work-but-sometimes-specially-in[^]--NDK
1 Feb 2012 by Ido Flatow
WCF/ASMX Interoperability – Removing the Annoying xxxSpecified when adding a web reference to a WCF service
15 Oct 2012 by I.explore.code
Generally, the rule is to open the SQL connection as late as possible and close as quickly as possible. Preferably you should open/close connections only the Data access layer i.e. the class(es) that directly access the data and no where else. What you can do is create a singleton connection...
2 Nov 2012 by Vani Kulkarni
Try this link, see if it helps:http://www.justskins.com/forums/webservice-with-apache-61317.html[^]
21 Aug 2013 by thatraja
Try parentNode instead of parentJavaScript HTML DOM Elements (Nodes)[^]Here is a common workaround: Find the child you want to remove, and use its parentNode property to find the parent:var child=document.getElementById("p1");child.parentNode.removeChild(child);
6 Nov 2013 by Abhinav S
Some tutorials -Calling Web Service using ASP.NET[^]http://www.tutorialspoint.com/asp.net/asp.net_web_services.htm[^]Video - http://www.youtube.com/watch?v=fLUbEfOyg-c[^]
14 Jan 2014 by Nanda Kumar Chintam
This tip explains how to perform unit testing for business logic written in App_code for a website project.
14 Apr 2014 by Manas Bhardwaj
Look at the links below:http://msdn.microsoft.com/en-us/library/ywx7tzs7(v=vs.90).aspx[^]http://stackoverflow.com/questions/20281144/create-a-asmx-web-service-in-visual-studio-2013[^]However, you should avoid to use ASMX. It's considered as old legacy now.The newer Microsoft...
9 Aug 2014 by Sreejesh T J Nair
make your web.config of web service something like this. and add this before...
5 May 2017 by Wessel Beulink
You have an error on your namespace you are using a fixed url: _ if you used dynamic the url should be: _ You should use dynamic url binding or change the...
18 Apr 2011 by Abhinav S
Try debugging the code till you can. Then use a tool like TCPMon or Fiddler to read data that goes over the wire - it may help you get to the root of the problem.
19 Jun 2011 by My Tech World
How to add reference to an existing wsdl file?I was asked this question, but I wasn't sure if I understood this correctly.
19 Jun 2011 by Mark Salsbery
I would try using the pathname to the file in the "Add Service Reference..." dialog.If that doesn't work, or if you'd prefer, use the ServiceModel Metadata Utility Tool (Svcutil.exe)[^].
21 Jul 2011 by Sharee82
How will a webservice(WCF or simple ASMX) communicate with a flash object . what is supposed to be the return type of method and the parameters of functions..
2 Nov 2011 by Taysseer Kadri
Hey everyone.I've finished setting up this silverlight web app that on button_click, calls a web service that saves a file to the server hard drive, and attaches it and sends the information to an email address. It works flawlessly on my dev machine.I tried setting it up on the web in...
2 Nov 2011 by Abhinav S
You need a cross-domain policy files in the root directory of the folder.You can view this video[^] to understand more about this.Here[^] is an article on this topic.
2 Jan 2012 by idhris2011
Am getting this error!!!how to solve this?This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy...
18 Jan 2012 by comred
Hi All, I made a service which deletes any folder mentioned in the path. my web service is published on my IIS server. I have another web page which referring this web service by calling a method in it with the folder path. I am getting an error...
18 Jan 2012 by comred
Hi, My web service is on ftp server. and I want to use it in my web app. I want any tutorial or steps for the same. I did it with my IIS but don't have idea about ftp. I have credentials of ftp server. When I tried to give the web reference then I got message thatDefault...
19 Jan 2012 by Syed Salman Raza Zaidi
Hi,Add web reference is for web services/WCF services. What you have here is FTP and you can NOT add a reference to it (it is neither web service nor WCF contract).What you got to do is use FtpWebRequest Class to programatically get your file from vendor's FTP server.Here is a sample...
20 Jan 2012 by Sergey Alexandrovich Kryukov
Please see my answers:The question is not quite clear. What is "service is on Remote FTP"? The Web service itself is based on HTTP, a protocol on the same Application Level as FTP (please see the references below). If you simply mean using FTP for deployment or support of your Web service...
14 Feb 2012 by comred
require_once('../lib/nusoap.php');$wsdl = "http://www.abc.com/excelserver/xmlserver.asmx?wsdl";$mynamespace = "http://www.abc.com/excelserver/";$s = new nusoap_client($wsdl,true);//$xml = new xmlschema($wsdl);/*$theVarible =...
23 Feb 2012 by comred
Hi All.I have made a web service in Asp.net which returning some data in form of xmlElement.Now I have php client, but I don't know how to get those records. Because its not an xml file. So I am not able to use predefine functions available in php.I am very much new to php, Its just...
28 Feb 2012 by comred
$var = $s->call('GetDataFromServices', array('parameters' => $param['date'],$param['type'])); function test_print($item, $key) { echo "$key holds $item\n"; } array_walk_recursive($var, 'test_print');
22 Mar 2012 by WebMaster
when I enter the number 3.4 on the form in C # windows application into a database sql server 2005,, a number that is printed is 3.44445556.how to change the number 3.44445556 to 3.4?
23 Mar 2012 by WebMaster
I want to make a search using a web service. what should I do?
1 May 2012 by Cihan Çildan
I have a web service that includes two web method, GetAllUsers and GetAllMessages. Both of them gets user's ID. GetAllUsers method returns all users except the user is ID's given, and GetAllMessages returns all messages belong to given user. But after some try (2 or 3), GetAllUsers method is...
22 May 2012 by BalaThakur
I built a auto complete extender using database with web service. But It's not working as web service is not getting hit.Thank you in advance...
22 May 2012 by Sandeep Mewara
Based on what you have shared, it is hard to tell what could be the issue. Have a look at these for it's implementation:Using Ajax AutoCompleteExtender for autosuggest[^]Auto Complete Extender[^]AutoComplete Demonstration[^]
22 May 2012 by sunandandutt
Hope this will Help:http://www.ajaxcontroltoolkit.com/AutoComplete/AutoComplete.aspx[^]
15 Aug 2012 by dilzz
HI Sir,I am doing a asp.net project, i have doubt, I need to call some functions in .asmx page from a master page.Can we access the methods from master page to .asmx page.Please advice me.Thanks in advance,Dileep..
16 Aug 2012 by bbirajdar
First of all a .asmx is a webservice class and not a 'page' as you call it in your question.Second thing is using the webservice i.e. functions from .asmx into a master page or page ( used in same way). The steps for using it are as follows:Calling Web Service using...
24 Sep 2012 by Prantick
I am working on a mobile native application in Blackberry WebWorks. My application runs on Tomcat 5.5 which fetches data from an ASMX webservice running on IIS 7.5. I am getting timeout after a timeperiod of 2mins during data-fetching operation. I can not over come this problem please help me to...
24 Sep 2012 by Unareshraju
hi Prantick ,do the changes like this :$.supports.cors=true;$.ajax({ type: 'POST', url: "http://myurl:port/projectpath.action", data: formInput, contentType:"text/html", success:function(jqXHR, textStatus, errorThrown){ ...
30 Sep 2012 by Prantick
Hi Everybody,I am working on a mobile native application in Blackberry WebWorks. My application runs on Tomcat 5.5 which fetches data from an ASMX webservice running on IIS 7.5. I am getting a timeout after a period of 2 mins during data-fetching operation. I can not over come this...
8 Oct 2012 by Ganesh KP
Hi friends,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....
15 Oct 2012 by Ganesh KP
Hi friends, I have one web service in which I have 3 vb.net modules1. ApplicationManager.vb 2. AgencyManager.vb3. InventoryManager.vband my service InventoryService.asmx in which I call the GeAllAgencies in the ApplicationManager.vb and in turn that method calls the GetAgency in...
2 Nov 2012 by sarathtamil
I create a Webservice in Asp.Net.The webservice have Service.asmx File.How to run the Webservice in apache server? How to invoke apache server in visual studio 2008.It is Possible.. advance Thanks..
19 Nov 2012 by vikram_shinde
Hi,I am trying to post a SOAP request on third-party web service. I have added web service as a reference in my Visual Studio project. Generated WSDL has attributes CheckIn/CheckOut, which of type Date. Web Services accept only following form of request -
19 Nov 2012 by __TR__
Try formating the date likeDateTime.Now.ToString("yyyy-MM-dd");Refer C# DateTime Format[^]Hope this helps
26 Dec 2012 by sarathtamil
i develope one asmx file .It have following methods they are add,sub,mul and div.In this asmx file run only my computer and I copy asmx url from another computer it don't run.So,how to run my webservice in all computers... advance thanks..
26 Dec 2012 by Oleksandr Kulchytskyi
So according to your latest answer i would recommend you to use WCF , as it has various ability to host service (from ISS to windows service and plain native apps).I think there won't no complicated things occur with porting it from old asmx service to brand-new WCF.One thing that you can...
29 Jan 2013 by Ganesh KP
Hi friends,I want to pass a user defined data type(a complex data type- an object say) to asmx web service from my android app. I have tried of sending primitive data types and works fine. When I am trying to send the object it self as it is then I got the following error. (See link...
29 Jan 2013 by Daniel Carlström
Hi,I am currently working on rewriting my company's web service logging.The reason for doing this is that our production server is experiencing heavy load during peak hours. The current setup is very intensive on our database.Before I dig into things; I post this so that more...
5 Feb 2013 by mario genov
Basically what I'm trying is redirect requests to an ASMX web service to another ASMX web service. For simplicity's sake let's say I have an ASMX web service with Hello method only and simple soap extension like this one (let's ignore the log entries code). The differences in my soap extension...
8 Apr 2013 by 吴骏明
Generate interface for WebService client stub for unit testing.
8 Apr 2013 by Daniel Carlström
Hi,I am about to dive into data driven testing of asmx web services.Currently we use C# to write our asmx web services.I use SOAPUI for simple testing but I need to take the testing to a higher level.Recently I have been reading up a bit on SOAPUI and test suits. I'm starting to...
24 Apr 2013 by zoul1380
Good day. I'm Converting our webservice(asmx) to WCF, my problem is when I get the WSDL of WCF our application that is reading that WSDL is throwing me an error "the element 'http://tempuri.org/:GetData' is missing. but in the ASMX generated WSDL it works fine?is there something i need...
2 May 2013 by zoul1380
I solved this issue. I hope this helps someonei add the XMLSerializerFormat and it work for me..[ServiceContract][XmlSerializerFormat(Use = OperationFormatUse.Encoded, Style = OperationFormatStyle.Rpc)]public interface ITimesheetService{ [OperationContract] string...
7 May 2013 by riodejenris14
My Code: public string LoginHandler(string strEmail_Id, string strPassword, out int strID, out string strName, out string strRole, out int Status_Parameter, out string Status_Msg) { DbCommand objlogin = null; try { objConn =...
7 May 2013 by Mohammed Hameed
Hi Riyaz,Are you sure you are getting some value from SP? Did you verify the specified column name is correct i.e., ID?Please check verify again and let me know and provide the full exception details to understand it properly.
12 May 2013 by Alexrf
Hi, please help me.I have a task:I need to show a list of the ordered details,some thing like thisNumber of request| Author| Date| comment| Actions 1 Alvil Smith 29/09/2010 My first Order Delete/ModifyI have a web service,...
27 May 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Please check the answer - WCF service to accept a post encoded multipart/form-data[^].This might help you.
21 Jul 2013 by nandakishoreroyal
I have added web reference to the solution.now i need to access the web methods present under added web reference..I aspx.cs how to access the web methods ..Please any one explain me how to access web methods briefly...
21 Jul 2013 by vinayoukuri
When you add a web reference it create a proxy class in your project that has the same or similar methods/arguments as your web service. That proxy class communicates with your web service via SOAP but hides all of the communications protocol stuff so you don't have to worry about it.say...
21 Aug 2013 by Am Gayathri
How can i get the text in parent element in javascript?var elements= document.getElementsByTagName("span");alert(elements[5].parent.innerText);This is the what i am using, but this code is not returning any...
11 Sep 2013 by SKOTAJI
Hi,I am trying to consume a webservice using a WSDL file. file has a complex type is like this ..
15 Sep 2013 by satyapratap
i have a wcf rest which is recieving an image from andriod device and save into public shared folder.everything is working well but while saving the image file(actual image size is 15kb) into my shared folder it is saving with 489kb.Any image file is saving with 489kb only. I found the...
16 Sep 2013 by satyapratap
here i have solved my self[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "UploadImage")]public string RecieveImage(Stream ImageStream)FileStream fileToupload = new...
16 Sep 2013 by satyapratap
Please dont mark it as Duplicate. I have treid many times but failed.i am getting stream content and saving my image with static name. But i am unable to sending the image file-name,extension parameters to that post URL.my code is like belowin Web.Config
24 Sep 2013 by gavkk
assign an id to span.and try thisvar a=document.getElementById("span_id");alert(a.parentElement.innerText)
25 Sep 2013 by karthik mushyam
Here am getting solutionUploadStringCompleted:
26 Sep 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
As the result is in XML, so parse it and find the HelloWorldResult node value.Refer - Parsing XML in C#[^] for one example.
13 Oct 2013 by Madhuri Mantha
Hi, We have an asmx web service that is being exposed to non-. NET clients and the clients access the webservice through httppost(through URL). Ex:- http://servername/service.asmx?wsdlWe want the callers to this asmx be authenticated and identified before they get an access to...
23 Oct 2013 by Faaabio Martins
I already did everything to run my webservice on IIS and it is working. IIS Pool is listening to port 81, and i did port fowarding from port 8081 to port 81 inside my network, aiming for my server. When i type http://xxx.com:8081/WebServiceName.asmx it returns my web service page to consume my...
28 Oct 2013 by Faaabio Martins
Well since no one has acheived to solve this, i did port fowarding on 81 to my Web Server too and solved my problem.
30 Oct 2013 by prateekactive
I also tried using base64 string, but only very small size image can be uploaded, how to upload large Image ???
3 Nov 2013 by SKOTAJI
Hi All,Specified property comes to override the behaviour of a class. Suppose the enumerate class defined as minoccurs and MaxOccurs is 0, then this case is forever false. like the above in WSDL if we mention bool value as minoccurs and MaxOccurs is 0, the statement is not correct. So, the...
6 Nov 2013 by Abhishek Luv
Hi,I have downloaded the wsdl file as well as the sample c# code provided by FedEx. I have all the keys with me UserKey, UserPassword, AccountNumber and MeterNumber. The sample code works like a charm showing the shipping rates.The sample c# code is a Console C# app, I am fairly new to...
12 Nov 2013 by karthik8905
I have been asked to create a web service that communicates with Auth.NET CIM and Shipsurance API. This web service will be used by multiple applications (one a desktop and another a web application). Am confused whether to go for WCF or asmx web service . Auth.NET CIM and Shipsurance API have...
12 Nov 2013 by thatraja
Have you heard about ?[^]And FYI Difference between BasicHttpBinding and WsHttpBinding[^]
20 Nov 2013 by SKOTAJI
Hi,Recently I faced a new issue with server request. I have caught the request message in wire shark is like this..
5 Dec 2013 by SKOTAJI
Hi All,I have a different doubt to resolve. Pleae help me.I have a web service in asmx and it is widely in use. Now to add more customers to it, raised a question to me that will it support JSON rather than SOAP to consume less bandwidth. Could you please give an idea with a sample...
5 Feb 2014 by chait301
I have asmx based web service using 2.0 framework.The web service can be consumed by the asp.net web client by creating the reference to web service.This is using HTPP post protocol.However , i would like to know how do I use HTTP soap protocol which is required when i have to send objects...
5 Feb 2014 by CoderPanda
Hi, may I suggest you pick up a short and quick tutorial on the basics of how to consume a web service? This CP article[^] should help too. However, to answer your questions, when you add web reference to your asp.net project it already creates proxy classed and it uses the WSDL. As a...
5 Feb 2014 by Florian Trück
A .net webservice in 2.0 already uses SOAP for communication. You do not need to change something when using it.Sending objects to the server should also be possible without any special requirements. If you add a reference to the webservice in Visual Studio it will create the WebService Client...
12 Mar 2014 by Harshad Kathiriya
HelloActually I have one ASMX service that return image in byte array.That works fine with small size image but when images is too large like above 100 MB or morethat time my service client can't handle it and fired the error.I googled and found like to put...
2 Jun 2014 by Bala25111989Dotnet
here i want to pass three parameters to that webservice using Url ,then that webservice return some html values to this page
2 Jun 2014 by Nivedita_Parihar
Use Ajax .. For example function WebServiceCallingFunctionName() { $.ajax({ type: "POST", url: "PageName.aspx/WebServiceMethodName", data: "{param:'param'}", contentType: "application/json", dataType: "json", success: function (msg)...
2 Jun 2014 by Nirav Prabtani
You can pass three parameters like that.. :)function CallWebService() { $.ajax({ type: "POST", url: "PageName.aspx/WebServiceMethodName", data: "{'Param1':'" + Param1 + "','Param2':'" + Param2 + "','Param3':'" + Param3 + "'}", contentType:...
20 Jun 2014 by Member 3493606
VS2010ASP.Net 4.0Solution: Test.sln with 1 projectWeb Application Project: TestTest.aspx (client code)Test.aspx.cs (web method)This works:
5 Aug 2014 by Matt Philmon
I know this sounds ridiculous. Maybe some of you have encountered something like I have here. I have an old ASMX web service that's run on a single server for several years. Recently that server has been replaced with 2 with a load balancer (Windows Server 2012 R2). The way the Infrastructure...
9 Aug 2014 by Member 10924155
I am a complete novice in .NET ASMX web services. Please dont mind if this seems like a silly question.I created a simple ASMX web service which looks like this below: [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo =...
14 Aug 2014 by Matt Philmon
If anyone ever rambling through the CodeProject forums in desperation for something like this, the answer is the SoapExtensionReflector Class. It does the trick by allowing you to override the WSDL through reflection on the fly. I found this after pouring through Google for a week. The link is...
25 Aug 2014 by Member 10924155
HiI am working on a ASP.NET Web Forms application using .net framework 4.0I want to use web services in my application which will-> be accessible from a browser (by typing in the URL)-> return JSONIn my web config file, I have already added ...
25 Aug 2014 by David Lee 145
You write json result to response and return list collection again.How about trying like this? [WebMethod][ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]public string BindDepartments(int faculty = 0, string university = "", string branch = ""){ List...
17 Nov 2014 by pelegk2
Matt Philmon, your answer is great.but what if i have some users that work with http and some with https.the ReflectDescription will occur only once, is there a way to override this?
27 Jan 2015 by SRS(The Coder)
Hi Friends,I have a web application which is having an asmx web service holding some web methods. Those are being called through jQuery ajax method to get data or do various operations.I want it to be accessed by only my web application and no other ways to call the web methods and this...
3 Feb 2015 by Iris Shing
How can I just only return json string without xml tag?I trid [WebMethod][ScriptMethod(ResponseFormat = ResponseFormat.Json)]public string HelloWorld(){ return "Hello World";}not working.create objectpublic class LoginError{ public string login { get; set; } ...
24 Mar 2015 by Manoj K Bhoir
Hi, First of all it's VB.Net code so remove C# tag from your question :).The exception that is thrown when there is an attempt to dereference a null object reference.For more information see this :...
15 Jul 2015 by raotahir
i have an xslt ...
1 Sep 2015 by Matt Philmon
If it's all in the same environment... then I don't know. I deploy this to a dev, test, stage, and production environment. Therefore, we always push out the bit of code for the reflector (in the App_Code folder). If I don't want it used (like in the dev environment which isn't secured), I just...
8 Oct 2015 by Ashutosh shukla207
hello friends... i am trying from so many days to call a web service from javascript... which is available on another domain... means cross domain web service . and i am failing again and again , can anyone tell me how to do it in productive way. 1: the service is like this...
30 May 2016 by MYQueries1
How to validate asmx soap request for XSS attacks before reaching Web Methods?What I have tried:How to validate asmx soap request for xss attacks before reaching Web Methods?
4 Oct 2016 by zonkerman2
I have an asmx web service (yes I know its old tech but no choice in the matter) I need to add a new class to for data transfers. Basically it will be used to pass into methods or return data. The class name is InspectionResults. The class is built using an xsd file as required for the group I...
14 Mar 2017 by Prafulla Sahu
I have some web services(.asmx) which were developed long back now a IBM tool is crawling our web services to look for any security breaches.How my services created? -> There is no validation logic implemented for all the web methods. -> Web methods are expecting good values so no...